public class UserListBans extends UserList<com.mojang.authlib.GameProfile,UserListBansEntry>
UserList.Serializer| Constructor and Description |
|---|
UserListBans(java.io.File bansFile) |
| Modifier and Type | Method and Description |
|---|---|
protected UserListEntry<com.mojang.authlib.GameProfile> |
createEntry(com.google.gson.JsonObject entryData) |
java.lang.String[] |
getKeys() |
protected java.lang.String |
getObjectKey(com.mojang.authlib.GameProfile obj)
Gets the key value for the given object
|
boolean |
isBanned(com.mojang.authlib.GameProfile profile) |
com.mojang.authlib.GameProfile |
isUsernameBanned(java.lang.String username) |
addEntry, getEntry, getValues, hasEntry, isLanServer, removeEntry, setLanServer, writeChangesprotected UserListEntry<com.mojang.authlib.GameProfile> createEntry(com.google.gson.JsonObject entryData)
createEntry in class UserList<com.mojang.authlib.GameProfile,UserListBansEntry>public boolean isBanned(com.mojang.authlib.GameProfile profile)
public java.lang.String[] getKeys()
getKeys in class UserList<com.mojang.authlib.GameProfile,UserListBansEntry>protected java.lang.String getObjectKey(com.mojang.authlib.GameProfile obj)
getObjectKey in class UserList<com.mojang.authlib.GameProfile,UserListBansEntry>public com.mojang.authlib.GameProfile isUsernameBanned(java.lang.String username)