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 void
add(V p_152687_1_)
protected boolean
contains(K p_152692_1_)
protected abstract UserListEntry<K>
createEntry(com.google.gson.JsonObject p_152682_1_)
V
get(K p_152683_1_)
java.util.Collection<V>
getEntries()
java.io.File
getFile()
protected java.lang.String
getKeyForUser(K p_152681_1_)
java.lang.String[]
getUserList()
boolean
isEmpty()
void
load()
void
remove(K p_152684_1_)
void
remove(UserListEntry<K> p_199042_1_)
private void
removeExpired()
void
save()
-
-
-
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
-
-