Enum ArenaConditionVariableType
java.lang.Object
java.lang.Enum<ArenaConditionVariableType>
de.marcely.bedwars.api.arena.picker.condition.variable.ArenaConditionVariableType
- All Implemented Interfaces:
Serializable,Comparable<ArenaConditionVariableType>,java.lang.constant.Constable
A type of the variable. Differentiate between default and custom ones.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGets the name of the arena from which it has been cloned.Gets the name of the custom mode, or an empty string when none is setAmount ofArena.getPlayers()Custom typeAmount untilArena.getMaxPlayers()is reachedIf the arena is local: Plugin tries to fetch the BungeeCord channel name and returns that one.Gets the amount of arenas on the server of the testing arena that has at least 1 playerLegacy id ofArena.getStatus()Amount ofArena.getEnabledTeams() -
Method Summary
Modifier and TypeMethodDescription@Nullable ArenaConditionVariable<?> Returns the effective instance of this type.static ArenaConditionVariableTypeReturns the enum constant of this type with the specified name.static ArenaConditionVariableType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PLAYERS_PER_TEAM
-
TEAMS
Amount ofArena.getEnabledTeams() -
MIN_PLAYERS
-
MAX_PLAYERS
-
INGAME_PLAYERS
Amount ofArena.getPlayers() -
REMAINING_SLOTS
Amount untilArena.getMaxPlayers()is reached -
STATUS
Legacy id ofArena.getStatus() -
NAME
-
DISPLAY_NAME
-
TYPE
-
GAME_WORLD
-
CLONED_ARENA_NAME
Gets the name of the arena from which it has been cloned.Returns
NOT_CLONEDin case it's not a cloned arena. -
SERVER_CHANNEL_NAME
If the arena is local: Plugin tries to fetch the BungeeCord channel name and returns that one. If none has been fetched, it returns LOCAL.
If the arena is remote: Returns the channel name of the server at which the arena is located at -
SERVER_PLAYING_ARENAS_COUNT
Gets the amount of arenas on the server of the testing arena that has at least 1 player -
CUSTOM_MODE
Gets the name of the custom mode, or an empty string when none is set -
PLUGIN
Custom type
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getInstance
Returns the effective instance of this type.May also return
nullin case the plugin has not been initialized yet.- Returns:
- The instance of this type.
nullin case it'sPLUGIN.
-