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 TypeMethodDescriptionbooleanvoidclear()protected booleanprotected abstract StoredUserEntry<K> createEntry(JsonObject pEntryData) getFile()protected StringgetKeyForUser(K pObj) Gets the key value for the given objectString[]booleanisEmpty()voidload()booleanbooleanremove(StoredUserEntry<K> pEntry) private voidvoidsave()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
GSON
-
file
-
map
-
notificationService
-
-
Constructor Details
-
StoredUserList
-
-
Method Details
-
getFile
-
add
-
get
-
remove
-
remove
-
clear
public void clear() -
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
-