类 StoredUserList<K,V extends StoredUserEntry<K>>

java.lang.Object
net.minecraft.server.players.StoredUserList<K,V>
直接已知子类:
IpBanList, ServerOpList, UserBanList, UserWhiteList

public abstract class StoredUserList<K,V extends StoredUserEntry<K>> extends Object
  • 字段详细资料

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • GSON

      private static final com.google.gson.Gson GSON
    • file

      private final File file
    • map

      private final Map<String,V extends StoredUserEntry<K>> map
  • 构造器详细资料

    • StoredUserList

      public StoredUserList(File pFile)
  • 方法详细资料

    • getFile

      public File getFile()
    • add

      public void add(V pEntry)
    • get

      @Nullable public V get(K pObj)
    • remove

      public void remove(K pUser)
    • remove

      public void remove(StoredUserEntry<K> pEntry)
    • getUserList

      public String[] getUserList()
    • isEmpty

      public boolean isEmpty()
    • getKeyForUser

      protected String getKeyForUser(K pObj)
    • contains

      protected boolean contains(K pEntry)
    • removeExpired

      private void removeExpired()
    • createEntry

      protected abstract StoredUserEntry<K> createEntry(com.google.gson.JsonObject pEntryData)
    • getEntries

      public Collection<V> getEntries()
    • save

      public void save() throws IOException
      抛出:
      IOException
    • load

      public void load() throws IOException
      抛出:
      IOException