public class UserListBans extends UserList<GameProfile,UserListBansEntry>
Constructor and Description |
---|
UserListBans(java.io.File bansFile) |
Modifier and Type | Method and Description |
---|---|
protected UserListEntry<GameProfile> |
createEntry(JsonObject entryData) |
GameProfile |
getBannedProfile(java.lang.String username)
Get a
GameProfile that is a member of this list by its user name. |
java.lang.String[] |
getKeys() |
protected java.lang.String |
getObjectKey(GameProfile obj)
Gets the key value for the given object
|
boolean |
isBanned(GameProfile profile) |
addEntry, getEntry, getSaveFile, getValues, hasEntry, isEmpty, isLanServer, readSavedFile, removeEntry, setLanServer, writeChanges
protected UserListEntry<GameProfile> createEntry(JsonObject entryData)
createEntry
in class UserList<GameProfile,UserListBansEntry>
public boolean isBanned(GameProfile profile)
public java.lang.String[] getKeys()
getKeys
in class UserList<GameProfile,UserListBansEntry>
protected java.lang.String getObjectKey(GameProfile obj)
getObjectKey
in class UserList<GameProfile,UserListBansEntry>
public GameProfile getBannedProfile(java.lang.String username)
GameProfile
that is a member of this list by its user name. Returns null
if no entry was
found.