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 TypeMethodDescriptionvoid
Adds an entry to the listprotected boolean
protected abstract StoredUserEntry
<K> createEntry
(com.google.gson.JsonObject p_11383_) getFile()
protected String
getKeyForUser
(K pObj) Gets the key value for the given objectString[]
boolean
isEmpty()
void
load()
void
void
remove
(StoredUserEntry<K> pEntry) 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
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
-