Package de.marcely.bedwars.api.remote
Enum RemoteSpectatorAddResult.Result
java.lang.Object
java.lang.Enum<RemoteSpectatorAddResult.Result>
de.marcely.bedwars.api.remote.RemoteSpectatorAddResult.Result
- All Implemented Interfaces:
Serializable
,Comparable<RemoteSpectatorAddResult.Result>
,java.lang.constant.Constable
- Enclosing class:
RemoteSpectatorAddResult
Represents the exact result of what happened to the player that tried to spectate.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe player is busy with something else, such as getting added as a player.The arena has been removed during the process.The arena is not running anymore.The player went offline.A plugin cancelled it using the API.The server is full.It all went fine.We tried to contact the server, but we have never received any info.We don't know, really. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static RemoteSpectatorAddResult.Result[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
It all went fine. -
PLAYER_OFFLINE
The player went offline. -
ALREADY_MOVING
The player is busy with something else, such as getting added as a player. -
SERVER_FULL
The server is full. -
ARENA_NOT_EXISTING_ANYMORE
The arena has been removed during the process. -
ARENA_NOT_RUNNING
The arena is not running anymore. -
PLUGIN_EVENT_CANCELLED
A plugin cancelled it using the API. -
TIMEOUT
We tried to contact the server, but we have never received any info. -
UNKNOWN
We don't know, really.
-
-
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
-