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) |
com.mojang.authlib.GameProfile |
getBannedProfile(java.lang.String username) |
java.lang.String[] |
getKeys() |
protected java.lang.String |
getObjectKey(com.mojang.authlib.GameProfile obj) |
boolean |
isBanned(com.mojang.authlib.GameProfile profile) |
addEntry, getEntry, getSaveFile, getValues, hasEntry, isEmpty, isLanServer, readSavedFile, removeEntry, setLanServer, writeChanges
protected 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 getBannedProfile(java.lang.String username)