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

java.lang.Object
net.minecraft.server.players.StoredUserList<K,V>
Direct Known Subclasses:
IpBanList, ServerOpList, UserBanList, UserWhiteList

public abstract class StoredUserList<K,V extends StoredUserEntry<K>> extends Object
  • Field Details

    • 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
  • Constructor Details

    • StoredUserList

      public StoredUserList(File pFile)
  • Method Details

    • getFile

      public File getFile()
    • add

      public void add(V pEntry)
      Adds an entry to the list
    • 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)
      Gets the key value for the given object
    • contains

      protected boolean contains(K pEntry)
    • removeExpired

      private void removeExpired()
    • createEntry

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

      public Collection<V> getEntries()
    • save

      public void save() throws IOException
      Throws:
      IOException
    • load

      public void load() throws IOException
      Throws:
      IOException