Package net.minecraft.server.management
Class IPBanList
- java.lang.Object
-
- net.minecraft.server.management.UserList<java.lang.String,IPBanEntry>
-
- net.minecraft.server.management.IPBanList
-
public class IPBanList extends UserList<java.lang.String,IPBanEntry>
-
-
Constructor Summary
Constructors Constructor Description IPBanList(java.io.File p_i1490_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UserListEntry<java.lang.String>
createEntry(com.google.gson.JsonObject p_152682_1_)
IPBanEntry
get(java.net.SocketAddress p_152709_1_)
private java.lang.String
getIpFromAddress(java.net.SocketAddress p_152707_1_)
boolean
isBanned(java.lang.String p_199044_1_)
boolean
isBanned(java.net.SocketAddress p_152708_1_)
-
Methods inherited from class net.minecraft.server.management.UserList
add, contains, get, getEntries, getFile, getKeyForUser, getUserList, isEmpty, load, remove, remove, save
-
-
-
-
Method Detail
-
createEntry
protected UserListEntry<java.lang.String> createEntry(com.google.gson.JsonObject p_152682_1_)
- Specified by:
createEntry
in classUserList<java.lang.String,IPBanEntry>
-
isBanned
public boolean isBanned(java.net.SocketAddress p_152708_1_)
-
isBanned
public boolean isBanned(java.lang.String p_199044_1_)
-
get
public IPBanEntry get(java.net.SocketAddress p_152709_1_)
-
getIpFromAddress
private java.lang.String getIpFromAddress(java.net.SocketAddress p_152707_1_)
-
-