Package net.minecraft.server.management
Class UserList<K,V extends UserListEntry<K>>
java.lang.Object
net.minecraft.server.management.UserList<K,V>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected boolean
protected abstract UserListEntry<K>
createEntry
(com.google.gson.JsonObject p_152682_1_) getFile()
protected String
getKeyForUser
(K p_152681_1_) String[]
boolean
isEmpty()
void
load()
void
void
remove
(UserListEntry<K> p_199042_1_) private void
void
save()
-
Field Details
-
LOGGER
protected static final org.apache.logging.log4j.Logger LOGGER -
GSON
private static final com.google.gson.Gson GSON -
file
-
map
-
-
Constructor Details
-
UserList
-
-
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
-