Enum Class CustomGameService.JoinResult
java.lang.Object
java.lang.Enum<CustomGameService.JoinResult>
dev.itsharshxd.zentrix.api.customgame.CustomGameService.JoinResult
- All Implemented Interfaces:
Serializable,Comparable<CustomGameService.JoinResult>,Constable
- Enclosing interface:
CustomGameService
The outcome of a join request.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe player is already in a game.A join for this player is already underway.The game's deathmatch is configured incorrectly.Custom games are disabled.The game is full.Accepted; the player, or their party, is on the way in.Only the party leader can take the party into a game.The party does not fit.The game is password-protected and no password was given.The game's arena is missing.The game no longer exists or no longer accepts players.The password given was wrong. -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomGameService.JoinResultReturns the enum constant of this class with the specified name.static CustomGameService.JoinResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JOINING
Accepted; the player, or their party, is on the way in. -
DISABLED
Custom games are disabled. -
UNAVAILABLE
The game no longer exists or no longer accepts players. -
ALREADY_IN_GAME
The player is already in a game. -
DEATHMATCH_MISCONFIGURED
The game's deathmatch is configured incorrectly. -
NOT_PARTY_LEADER
Only the party leader can take the party into a game. -
PARTY_TOO_LARGE
The party does not fit. -
FULL
The game is full. -
SOURCE_MISSING
The game's arena is missing. -
ALREADY_JOINING
A join for this player is already underway. -
PASSWORD_REQUIRED
The game is password-protected and no password was given. -
WRONG_PASSWORD
The password given was wrong.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-