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 object) @Nullable VgetFile()protected StringgetKeyForUser(K user) Gets the key value for the given objectString[]booleanisEmpty()voidload()booleanbooleanremove(StoredUserEntry<K> infos) 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
-
contains
-
removeExpired
private void removeExpired() -
createEntry
-
getEntries
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-