Package de.marcely.bedwars.api.arena
Enum ArenaStatus
- All Implemented Interfaces:
Serializable
,Comparable<ArenaStatus>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static @Nullable ArenaStatus
Returns the ArenaStatus which the corresponding idstatic @Nullable ArenaStatus
fromLegacyId
(int legacyId) Deprecated.Will be removed in the futuregetId()
Returns the id of this stateint
Deprecated.getId()
should be used instead as this method will be removed in the futureYou can find them in the messages file under: "Sign_[status]".
Uses the configured language as the default languagegetSignName
(@Nullable CommandSender sender) You can find them in the messages file under: "Sign_[status]".
Uses the configured language as the default languageboolean
isLobby()
static ArenaStatus
Returns the enum constant of this type with the specified name.static ArenaStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STOPPED
The arena is stopped. Nobody is able to join and nothing is happening -
LOBBY
Players are waiting for other players and until the game starts -
RUNNING
The game is running with players playing and spectators spectating -
RESETTING
The game has finished. Now it's time to clean everything up and prepare the arena for the next match -
END_LOBBY
-
-
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
-
getId
Returns the id of this state- Returns:
- The id
-
getLegacyId
Deprecated.getId()
should be used instead as this method will be removed in the futureReturns the legacy id- Returns:
- The legacy id
-
getSignName
You can find them in the messages file under: "Sign_[status]".
Uses the configured language as the default language- Returns:
- The name of the status that can be represented on a sign
-
getSignName
You can find them in the messages file under: "Sign_[status]".
Uses the configured language as the default language- Parameters:
sender
- The person from which it should look up the language. Null if it should take the default language- Returns:
- The name of the status that can be represented on a sign
-
isLobby
public boolean isLobby()- Returns:
- Whether it's a lobby status or not
-
canHavePlayers
public boolean canHavePlayers()- Returns:
- Whether or not players can be inside the arena during this state
-
fromId
Returns the ArenaStatus which the corresponding id- Parameters:
id
- The id we've got- Returns:
- The ArenaStatus which the corresponding id
-
fromLegacyId
Deprecated.Will be removed in the futureReturns the ArenaStatus which the corresponding legacy id- Parameters:
legacyId
- The id we've got- Returns:
- The ArenaStatus which the corresponding legacy id
-