Enum Class ActionCategory

java.lang.Object
java.lang.Enum<ActionCategory>
ua.mcchickenstudio.opencreative.coding.blocks.actions.ActionCategory
All Implemented Interfaces:
Serializable, Comparable<ActionCategory>, Constable, CodingBlockCategory

public enum ActionCategory extends Enum<ActionCategory> implements CodingBlockCategory
  • Enum Constant Details

    • PLAYER_ACTION

      public static final ActionCategory PLAYER_ACTION
    • ENTITY_ACTION

      public static final ActionCategory ENTITY_ACTION
    • WORLD_ACTION

      public static final ActionCategory WORLD_ACTION
    • VARIABLE_ACTION

      public static final ActionCategory VARIABLE_ACTION
    • SELECTION_ACTION

      public static final ActionCategory SELECTION_ACTION
    • LAUNCH_FUNCTION_ACTION

      public static final ActionCategory LAUNCH_FUNCTION_ACTION
    • LAUNCH_METHOD_ACTION

      public static final ActionCategory LAUNCH_METHOD_ACTION
    • CONTROL_ACTION

      public static final ActionCategory CONTROL_ACTION
    • CONTROLLER_ACTION

      public static final ActionCategory CONTROLLER_ACTION
    • REPEAT_ACTION

      public static final ActionCategory REPEAT_ACTION
    • PLAYER_CONDITION

      public static final ActionCategory PLAYER_CONDITION
    • VARIABLE_CONDITION

      public static final ActionCategory VARIABLE_CONDITION
    • WORLD_CONDITION

      public static final ActionCategory WORLD_CONDITION
    • ENTITY_CONDITION

      public static final ActionCategory ENTITY_CONDITION
    • ELSE_CONDITION

      public static final ActionCategory ELSE_CONDITION
  • Method Details

    • values

      public static ActionCategory[] 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

      public static ActionCategory valueOf(String name)
      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 name
      NullPointerException - 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

      @Nullable public static @Nullable ActionCategory getCategory(@NotNull @NotNull String text)
      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

      @NotNull public @NotNull MenusCategory getDefaultCategory()
      Description copied from interface: CodingBlockCategory
      Returns default menus category, that will be shown when opening Coding Block Type Selection menu with legacy mode, that opens preferred category immediately.
      Specified by:
      getDefaultCategory in interface CodingBlockCategory
      Returns:
      default menus category.
    • getColor

      @NotNull public @NotNull net.kyori.adventure.text.format.NamedTextColor getColor()
      Description copied from interface: CodingBlockCategory
      Returns color, that will be used for displaying executor in chat.
      Specified by:
      getColor in interface CodingBlockCategory
      Returns:
      color of executor.
    • getLocaleName

      @NotNull public @NotNull String getLocaleName()
      Description copied from interface: CodingBlockCategory
      Returns localized name of category.
      Specified by:
      getLocaleName in interface CodingBlockCategory
      Returns:
      localized name of category.
    • getStainedPane

      @NotNull public @NotNull org.bukkit.Material getStainedPane()
      Description copied from interface: CodingBlockCategory
      Returns material of colored stained-glass pane, that will be used for decoration in blocks type selection menu.
      Specified by:
      getStainedPane in interface CodingBlockCategory
      Returns:
      material of colored stained-glass pane.
    • getAdditionalBlock

      @NotNull public @NotNull org.bukkit.Material getAdditionalBlock()
      Description copied from interface: CodingBlockCategory
      Returns 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:
      getAdditionalBlock in interface CodingBlockCategory
      Returns:
      second block material.
    • getBlock

      @NotNull public @NotNull org.bukkit.Material getBlock()
      Description copied from interface: CodingBlockCategory
      Returns 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:
      getBlock in interface CodingBlockCategory
      Returns:
      first block material.
    • getItem

      @NotNull public @NotNull org.bukkit.inventory.ItemStack getItem()
      Description copied from interface: CodingBlockCategory
      Returns item of coding block, that will be used for displaying in blocks type selection menu.
      Specified by:
      getItem in interface CodingBlockCategory
      Returns:
      item of coding block.