Interface IUserMap

All Known Implementing Classes:
ModernUserMap

public interface IUserMap
  • Method Details

    • getAllUserUUIDs

      Set<UUID> getAllUserUUIDs()
      Gets all the UUIDs of every User which has joined.
      Returns:
      the UUIDs of all Users.
    • getCachedCount

      long getCachedCount()
      Gets the current amount of users loaded into memory.
      Returns:
      the amount of users loaded into memory.
    • getUserCount

      int getUserCount()
      Gets the amount of users stored by Essentials.
      Returns:
      the amount of users stored by Essentials.
    • getUser

      User getUser(UUID uuid)
    • getUser

      User getUser(Player base)
    • getUser

      User getUser(String name)
    • loadUncachedUser

      User loadUncachedUser(Player base)
    • loadUncachedUser

      User loadUncachedUser(UUID uuid)
      Gets a User by the given UUID in the cache, if present, otherwise loads the user without placing them in the cache. Ideally to be used when running operations on all stored users.
      Parameters:
      uuid - the UUID of the user to get.
      Returns:
      the User with the given UUID, or null if not found.
    • getNameCache

      Map<String,UUID> getNameCache()
      Gets the name to UUID cache.
      Returns:
      the name to UUID cache.