public interface ArenaManager
Modifier and Type | Method and Description |
---|---|
Arena |
get(org.bukkit.entity.Player player)
Attempts to find an
Arena instance that contains the player. |
Arena |
get(java.lang.String name)
Attempts to find an
Arena instance associated with the given name. |
java.util.List<Arena> |
getArenas()
An UnmodifiableList of
Arena s that are currently loaded. |
boolean |
isInMatch(org.bukkit.entity.Player player)
Whether or not the given player is in a match.
|
@Nullable Arena get(@NotNull java.lang.String name)
Arena
instance associated with the given name.name
- Name to search through the loaded arenas. Should not be null!Arena
instance that has a name matching with the given name or null if not exists.@Nullable Arena get(@NotNull org.bukkit.entity.Player player)
Arena
instance that contains the player.player
- Player to search through the loaded arenas. Should not be null!Arena
instance that contains the player or null if not exists.boolean isInMatch(@NotNull org.bukkit.entity.Player player)
get(Player)
is guaranteed to return a Arena
instance.player
- Player to check if in match. Should not be null!