Package de.marcely.bedwars.api.arena
Enum ArenaStatus
- All Implemented Interfaces:
- Serializable,- Comparable<ArenaStatus>,- java.lang.constant.Constable
Represents the state of an arena. This determines what the plugin is processing at a given moment
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic @Nullable ArenaStatusReturns the ArenaStatus which the corresponding idgetId()Returns the id of this stateYou 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 languagebooleanisLobby()static ArenaStatusReturns 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- 
STOPPEDThe arena is stopped. Nobody is able to join and nothing is happening
- 
LOBBYPlayers are waiting for other players and until the game starts
- 
RUNNINGThe game is running with players playing and spectators spectating
- 
RESETTINGThe game has finished. Now it's time to clean everything up and prepare the arena for the next match
- 
END_LOBBY
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getIdReturns the id of this state- Returns:
- The id
 
- 
getSignNameYou 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
 
- 
getSignNameYou 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
 
- 
isLobbypublic boolean isLobby()- Returns:
- Whether it's a lobby status or not
 
- 
canHavePlayerspublic boolean canHavePlayers()- Returns:
- Whether or not players can be inside the arena during this state
 
- 
fromIdReturns the ArenaStatus which the corresponding id- Parameters:
- id- The id we've got
- Returns:
- The ArenaStatus which the corresponding id
 
 
-