Package net.minecraft.server.players
Class StoredUserList<K,V extends StoredUserEntry<K>>
java.lang.Object
net.minecraft.server.players.StoredUserList<K,V>
- Direct Known Subclasses:
IpBanList,ServerOpList,UserBanList,UserWhiteList
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an entry to the listprotected booleanprotected abstract StoredUserEntry<K> createEntry(JsonObject pEntryData) getFile()protected StringgetKeyForUser(K pObj) Gets the key value for the given objectString[]booleanisEmpty()voidload()voidvoidremove(StoredUserEntry<K> pEntry) private voidvoidsave()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
GSON
-
file
-
map
-
-
Constructor Details
-
StoredUserList
-
-
Method Details
-
getFile
-
add
Adds an entry to the list -
get
-
remove
-
remove
-
getUserList
-
isEmpty
public boolean isEmpty() -
getKeyForUser
Gets the key value for the given object -
contains
-
removeExpired
private void removeExpired() -
createEntry
-
getEntries
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-