Enum FireworkItem.Type

java.lang.Object
java.lang.Enum<FireworkItem.Type>
net.minecraft.item.FireworkItem.Type
All Implemented Interfaces:
Serializable, Comparable<FireworkItem.Type>, java.lang.constant.Constable
Enclosing class:
FireworkItem

public static enum FireworkItem.Type
extends Enum<FireworkItem.Type>
  • Enum Constant Details

  • Field Details

    • TYPES

      private static final FireworkItem.Type[] TYPES
    • id

      private final int id
    • name

      private final String name
  • Constructor Details

    • Type

      private Type​(int id, String name)
  • Method Details

    • values

      public static FireworkItem.Type[] 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

      public static FireworkItem.Type valueOf​(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public int getId()
    • getName

      @Environment(CLIENT) public String getName()
    • byId

      @Environment(CLIENT) public static FireworkItem.Type byId​(int id)