Enum Class ActionCategory
- All Implemented Interfaces:
Serializable, Comparable<ActionCategory>, Constable, CodingBlockCategory
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.MaterialReturns second block material, that will be used for placing a coding block after first.@NotNull org.bukkit.MaterialgetBlock()Returns first block material, that will be used for placing a coding block.static @Nullable ActionCategorygetByMaterial(@NotNull org.bukkit.Material material) Returns action category by first block material.static @Nullable ActionCategorygetCategory(@NotNull String text) Returns action category by id of category.@NotNull net.kyori.adventure.text.format.NamedTextColorgetColor()Returns color, that will be used for displaying executor in chat.@NotNull MenusCategoryReturns default menus category, that will be shown when openingCoding Block Type Selection menuwith legacy mode, that opens preferred category immediately.@NotNull org.bukkit.inventory.ItemStackgetItem()Returns item of coding block, that will be used for displaying in blocks type selection menu.@NotNull StringReturns localized name of category.@NotNull org.bukkit.MaterialReturns material of colored stained-glass pane, that will be used for decoration in blocks type selection menu.booleanbooleanstatic ActionCategoryReturns the enum constant of this class with the specified name.static ActionCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER_ACTION
-
ENTITY_ACTION
-
WORLD_ACTION
-
VARIABLE_ACTION
-
SELECTION_ACTION
-
LAUNCH_FUNCTION_ACTION
-
LAUNCH_METHOD_ACTION
-
CONTROL_ACTION
-
CONTROLLER_ACTION
-
REPEAT_ACTION
-
PLAYER_CONDITION
-
VARIABLE_CONDITION
-
WORLD_CONDITION
-
ENTITY_CONDITION
-
ELSE_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
-
getByMaterial
@Nullable public static @Nullable ActionCategory getByMaterial(@NotNull @NotNull org.bukkit.Material material) Returns action category by first block material.- Parameters:
material- first block material.- Returns:
- category, or null - if not found.
-
getCategory
Returns action category by id of category.- Parameters:
text- id of category.- Returns:
- category, or null - if not found.
-
isMultiAction
public boolean isMultiAction() -
isCondition
public boolean isCondition() -
getDefaultCategory
Description copied from interface:CodingBlockCategoryReturns default menus category, that will be shown when openingCoding Block Type Selection menuwith legacy mode, that opens preferred category immediately.- Specified by:
getDefaultCategoryin interfaceCodingBlockCategory- Returns:
- default menus category.
-
getColor
@NotNull public @NotNull net.kyori.adventure.text.format.NamedTextColor getColor()Description copied from interface:CodingBlockCategoryReturns color, that will be used for displaying executor in chat.- Specified by:
getColorin interfaceCodingBlockCategory- Returns:
- color of executor.
-
getLocaleName
Description copied from interface:CodingBlockCategoryReturns localized name of category.- Specified by:
getLocaleNamein interfaceCodingBlockCategory- Returns:
- localized name of category.
-
getStainedPane
@NotNull public @NotNull org.bukkit.Material getStainedPane()Description copied from interface:CodingBlockCategoryReturns material of colored stained-glass pane, that will be used for decoration in blocks type selection menu.- Specified by:
getStainedPanein interfaceCodingBlockCategory- Returns:
- material of colored stained-glass pane.
-
getAdditionalBlock
@NotNull public @NotNull org.bukkit.Material getAdditionalBlock()Description copied from interface:CodingBlockCategoryReturns second block material, that will be used for placing a coding block after first.Examples:
- Player Event is Diamond ore.
- Player Action is Stone.
- Player Condition is Piston.
- Specified by:
getAdditionalBlockin interfaceCodingBlockCategory- Returns:
- second block material.
-
getBlock
@NotNull public @NotNull org.bukkit.Material getBlock()Description copied from interface:CodingBlockCategoryReturns first block material, that will be used for placing a coding block.Examples:
- Player Event is Diamond block.
- Player Action is Cobblestone.
- Player Condition is Oak Planks.
- Specified by:
getBlockin interfaceCodingBlockCategory- Returns:
- first block material.
-
getItem
@NotNull public @NotNull org.bukkit.inventory.ItemStack getItem()Description copied from interface:CodingBlockCategoryReturns item of coding block, that will be used for displaying in blocks type selection menu.- Specified by:
getItemin interfaceCodingBlockCategory- Returns:
- item of coding block.
-