Enum Class Items
- All Implemented Interfaces:
Serializable, Comparable<Items>, Constable
Items
This enum represents main items, that will be given to players by doing something: joining the lobby, connecting to world or entering to the coding world.
To get item, use get(Player) ()} method.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFor marking or unmarking condition as opposed.For viewing Changelogs in lobby.For viewing coding tutorial in coding world.For marking or unmarking executor whether it should send debug messages.For changing speed of flight in coding world.For opening Worlds Browser menu in lobby.For moving lines and marking them in coding world.For opening Own Worlds Browser menu in lobby.For viewing values list in coding world.For opening World Settings menu in world, as its owner. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStackget(@NotNull org.bukkit.entity.Player player) Creates and returns item, that can be given to player.static @Nullable ItemsReturns items enum by text.@NotNull org.bukkit.MaterialReturns material of main item.static ItemsReturns the enum constant of this class with the specified name.static Items[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GAMES
For opening Worlds Browser menu in lobby. -
OWN
For opening Own Worlds Browser menu in lobby. -
CHANGELOGS
For viewing Changelogs in lobby. -
WORLD_SETTINGS
For opening World Settings menu in world, as its owner. -
FLY_SPEED_CHANGER
For changing speed of flight in coding world. -
LINES_CONTROLLER
For moving lines and marking them in coding world. -
ARROW_NOT
For marking or unmarking condition as opposed. -
DEBUG_TORCH
For marking or unmarking executor whether it should send debug messages. -
CODING_BOOK
For viewing coding tutorial in coding world. -
VARIABLES
For viewing values list in coding world. -
EVENT_PLAYER
-
EVENT_WORLD
-
EVENT_ENTITY
-
CYCLE
-
METHOD
-
FUNCTION
-
PLAYER_ACTION
-
WORLD_ACTION
-
ENTITY_ACTION
-
VARIABLE_ACTION
-
REPEAT_ACTION
-
CONTROLLER_ACTION
-
CONTROL_ACTION
-
SELECTION_ACTION
-
LAUNCH_FUNCTION_ACTION
-
LAUNCH_METHOD_ACTION
-
PLAYER_CONDITION
-
WORLD_CONDITION
-
ENTITY_CONDITION
-
ELSE_CONDITION
-
VARIABLE_CONDITION
-
-
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
-
getById
-
getMaterial
@NotNull public @NotNull org.bukkit.Material getMaterial()Returns material of main item.- Returns:
- material.
-
get
public org.bukkit.inventory.ItemStack get(@NotNull @NotNull org.bukkit.entity.Player player) Creates and returns item, that can be given to player.- Returns:
- item to give to player.
-