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

      protected static final org.apache.logging.log4j.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 p_11380_)
  • Method Details

    • getFile

      public File getFile()
    • add

      public void add(V p_11382_)
    • get

      @Nullable public V get(K p_11389_)
    • remove

      public void remove(K p_11394_)
    • remove

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

      public String[] getUserList()
    • isEmpty

      public boolean isEmpty()
    • getKeyForUser

      protected String getKeyForUser(K p_11384_)
    • contains

      protected boolean contains(K p_11397_)
    • 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