Enum Class CreativeCategory

java.lang.Object
java.lang.Enum<CreativeCategory>
org.geysermc.geyser.api.util.CreativeCategory
All Implemented Interfaces:
Serializable, Comparable<CreativeCategory>, Constable

public enum CreativeCategory extends Enum<CreativeCategory>
Represents the creative menu categories or tabs.
  • Enum Constant Details

  • Method Details

    • values

      public static CreativeCategory[] 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 CreativeCategory 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
    • bedrockName

      public String bedrockName()
      Gets the bedrock name (used in behavior packs) of the category.
      Returns:
      the name of the category
    • id

      public int id()
      Gets the internal ID of the category.
      Returns:
      the ID of the category
    • fromName

      public static @Nullable CreativeCategory fromName(String name)
      Gets the creative category from its bedrock name.
      Returns:
      the creative category, or null if not found.