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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected boolean
protected abstract StoredUserEntry<K>
createEntry
(com.google.gson.JsonObject p_11383_) getFile()
protected String
getKeyForUser
(K p_11384_) String[]
boolean
isEmpty()
void
load()
void
void
remove
(StoredUserEntry<K> p_11387_) private void
void
save()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
GSON
private static final com.google.gson.Gson GSON -
file
-
map
-
-
Constructor Details
-
StoredUserList
-
-
Method Details
-
getFile
-
add
-
get
-
remove
-
remove
-
getUserList
-
isEmpty
public boolean isEmpty() -
getKeyForUser
-
contains
-
removeExpired
private void removeExpired() -
createEntry
-
getEntries
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-