public class UserListWhitelist extends UserList<GameProfile,UserListWhitelistEntry>
Constructor and Description |
---|
UserListWhitelist(java.io.File p_i1132_1_) |
Modifier and Type | Method and Description |
---|---|
protected UserListEntry<GameProfile> |
createEntry(JsonObject entryData) |
GameProfile |
getBannedProfile(java.lang.String p_152706_1_)
Gets the GameProfile for the UserListBanEntry with the specified username, if present
|
java.lang.String[] |
getKeys() |
protected java.lang.String |
getObjectKey(GameProfile obj)
Gets the key value for the given object
|
boolean |
isWhitelisted(GameProfile profile)
Returns true if the profile is in the whitelist.
|
addEntry, getEntry, getSaveFile, getValues, hasEntry, isEmpty, isLanServer, readSavedFile, removeEntry, setLanServer, writeChanges
protected UserListEntry<GameProfile> createEntry(JsonObject entryData)
createEntry
in class UserList<GameProfile,UserListWhitelistEntry>
public java.lang.String[] getKeys()
getKeys
in class UserList<GameProfile,UserListWhitelistEntry>
public boolean isWhitelisted(GameProfile profile)
protected java.lang.String getObjectKey(GameProfile obj)
getObjectKey
in class UserList<GameProfile,UserListWhitelistEntry>
public GameProfile getBannedProfile(java.lang.String p_152706_1_)