Package net.minecraft.server
Class ServerConfigList<K,V extends ServerConfigEntry<K>>
java.lang.Object
net.minecraft.server.ServerConfigList<K,V>
- Direct Known Subclasses:
BannedIpList,BannedPlayerList,OperatorList,Whitelist
public abstract class ServerConfigList<K,V extends ServerConfigEntry<K>> extends Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ServerConfigList(File file) -
Method Summary
Modifier and Type Method Description voidadd(V entry)protected booleancontains(K k)protected abstract ServerConfigEntry<K>fromJson(JsonObject json)Vget(K key)FilegetFile()String[]getNames()booleanisEmpty()voidload()voidremove(K key)voidremove(ServerConfigEntry<K> entry)private voidremoveInvalidEntries()voidsave()protected StringtoString(K profile)Collection<V>values()
-
Field Details
-
LOGGER
-
GSON
-
file
-
map
-
-
Constructor Details
-
ServerConfigList
-
-
Method Details
-
getFile
-
add
-
get
-
remove
-
remove
-
getNames
-
isEmpty
public boolean isEmpty() -
toString
-
contains
-
removeInvalidEntries
private void removeInvalidEntries() -
fromJson
-
values
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-