public class IPBanList extends UserList<java.lang.String,IPBanEntry>
UserList.Serializer
Constructor and Description |
---|
IPBanList(java.io.File bansFile) |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
addressToString(java.net.SocketAddress address) |
protected UserListEntry<java.lang.String> |
createEntry(com.google.gson.JsonObject entryData) |
IPBanEntry |
getBanEntry(java.net.SocketAddress address) |
boolean |
isBanned(java.net.SocketAddress address) |
boolean |
isBanned(java.lang.String p_199044_1_) |
addEntry, getEntries, getEntry, getKeys, getObjectKey, getSaveFile, hasEntry, isEmpty, isLanServer, readSavedFile, removeEntry, removeEntry, setLanServer, writeChanges
protected UserListEntry<java.lang.String> createEntry(com.google.gson.JsonObject entryData)
createEntry
in class UserList<java.lang.String,IPBanEntry>
public boolean isBanned(java.net.SocketAddress address)
public boolean isBanned(java.lang.String p_199044_1_)
public IPBanEntry getBanEntry(java.net.SocketAddress address)
private java.lang.String addressToString(java.net.SocketAddress address)