Enum SpectatorItemHandlerType
java.lang.Object
java.lang.Enum<SpectatorItemHandlerType>
de.marcely.bedwars.api.game.spectator.SpectatorItemHandlerType
- All Implemented Interfaces:
Serializable
,Comparable<SpectatorItemHandlerType>
,java.lang.constant.Constable
Represents the type of
SpectatorItemHandler
.
Custom ones use PLUGIN
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionClicking on causes the fly/movement speed of a player to get changed.Player leaves the spectating mode when clicking on it.Clicking on it causes the player to get sent to a new game.A custom type created by something accessing the API.Opens a GUI which contains all players currently playing inside the arena. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
getId()
Returns the id that's being used for the handler.static SpectatorItemHandlerType
Returns the enum constant of this type with the specified name.static SpectatorItemHandlerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CHANGE_SPEED
Clicking on causes the fly/movement speed of a player to get changed. -
LEAVE
Player leaves the spectating mode when clicking on it. -
NEXT_ROUND
Clicking on it causes the player to get sent to a new game. -
VIEW_PLAYERS
Opens a GUI which contains all players currently playing inside the arena. -
PLUGIN
A custom type created by something accessing the API.
-
-
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 that's being used for the handler.null
is being returned when passingPLUGIN
.- Returns:
- The id of this handler type
-