Class UserList<K,V extends UserListEntry<K>>

java.lang.Object
net.minecraft.server.management.UserList<K,V>
Direct Known Subclasses:
BanList, IPBanList, OpList, WhiteList

public abstract class UserList<K,V extends UserListEntry<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 UserListEntry<K>> map
  • Constructor Details

    • UserList

      public UserList(File p_i1144_1_)
  • Method Details

    • getFile

      public File getFile()
    • add

      public void add(V p_152687_1_)
    • get

      @Nullable public V get(K p_152683_1_)
    • remove

      public void remove(K p_152684_1_)
    • remove

      public void remove(UserListEntry<K> p_199042_1_)
    • getUserList

      public String[] getUserList()
    • isEmpty

      public boolean isEmpty()
    • getKeyForUser

      protected String getKeyForUser(K p_152681_1_)
    • contains

      protected boolean contains(K p_152692_1_)
    • removeExpired

      private void removeExpired()
    • createEntry

      protected abstract UserListEntry<K> createEntry(com.google.gson.JsonObject p_152682_1_)
    • getEntries

      public Collection<V> getEntries()
    • save

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

      public void load() throws IOException
      Throws:
      IOException