Interface IUserMap
- All Known Implementing Classes:
ModernUserMap
public interface IUserMap
-
Method Summary
Modifier and TypeMethodDescriptionGets all the UUIDs of every User which has joined.long
Gets the current amount of users loaded into memory.Gets the name to UUID cache.int
Gets the amount of users stored by Essentials.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.loadUncachedUser
(Player base)
-
Method Details
-
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
-
getUser
-
getUser
-
loadUncachedUser
-
loadUncachedUser
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
Gets the name to UUID cache.- Returns:
- the name to UUID cache.
-