Package net.minecraft.server.management
Class UserList<K,V extends UserListEntry<K>>
- java.lang.Object
-
- net.minecraft.server.management.UserList<K,V>
-
public abstract class UserList<K,V extends UserListEntry<K>> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description UserList(java.io.File p_i1144_1_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadd(V p_152687_1_)protected booleancontains(K p_152692_1_)protected abstract UserListEntry<K>createEntry(com.google.gson.JsonObject p_152682_1_)Vget(K p_152683_1_)java.util.Collection<V>getEntries()java.io.FilegetFile()protected java.lang.StringgetKeyForUser(K p_152681_1_)java.lang.String[]getUserList()booleanisEmpty()voidload()voidremove(K p_152684_1_)voidremove(UserListEntry<K> p_199042_1_)private voidremoveExpired()voidsave()
-
-
-
Field Detail
-
LOGGER
protected static final org.apache.logging.log4j.Logger LOGGER
-
GSON
private static final com.google.gson.Gson GSON
-
file
private final java.io.File file
-
map
private final java.util.Map<java.lang.String,V extends UserListEntry<K>> map
-
-
Method Detail
-
getFile
public java.io.File getFile()
-
add
public void add(V p_152687_1_)
-
remove
public void remove(K p_152684_1_)
-
remove
public void remove(UserListEntry<K> p_199042_1_)
-
getUserList
public java.lang.String[] getUserList()
-
isEmpty
public boolean isEmpty()
-
getKeyForUser
protected java.lang.String getKeyForUser(K p_152681_1_)
-
contains
protected boolean contains(K p_152692_1_)
-
removeExpired
private void removeExpired()
-
createEntry
protected abstract UserListEntry<K> createEntry(com.google.gson.JsonObject p_152682_1_)
-
getEntries
public java.util.Collection<V> getEntries()
-
save
public void save() throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load() throws java.io.IOException- Throws:
java.io.IOException
-
-