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>
Mappings:
Namespace Name
official bnh$a
intermediary net/minecraft/class_1781$class_1782
named net/minecraft/item/FireworkItem$Type
  • Enum Constant Details

    • SMALL_BALL

      public static final FireworkItem.Type SMALL_BALL
      Mappings:
      Namespace Name Mixin selector
      official a Lbnh$a;a:Lbnh$a;
      intermediary field_7976 Lnet/minecraft/class_1781$class_1782;field_7976:Lnet/minecraft/class_1781$class_1782;
      named SMALL_BALL Lnet/minecraft/item/FireworkItem$Type;SMALL_BALL:Lnet/minecraft/item/FireworkItem$Type;
    • LARGE_BALL

      public static final FireworkItem.Type LARGE_BALL
      Mappings:
      Namespace Name Mixin selector
      official b Lbnh$a;b:Lbnh$a;
      intermediary field_7977 Lnet/minecraft/class_1781$class_1782;field_7977:Lnet/minecraft/class_1781$class_1782;
      named LARGE_BALL Lnet/minecraft/item/FireworkItem$Type;LARGE_BALL:Lnet/minecraft/item/FireworkItem$Type;
    • STAR

      public static final FireworkItem.Type STAR
      Mappings:
      Namespace Name Mixin selector
      official c Lbnh$a;c:Lbnh$a;
      intermediary field_7973 Lnet/minecraft/class_1781$class_1782;field_7973:Lnet/minecraft/class_1781$class_1782;
      named STAR Lnet/minecraft/item/FireworkItem$Type;STAR:Lnet/minecraft/item/FireworkItem$Type;
    • CREEPER

      public static final FireworkItem.Type CREEPER
      Mappings:
      Namespace Name Mixin selector
      official d Lbnh$a;d:Lbnh$a;
      intermediary field_7974 Lnet/minecraft/class_1781$class_1782;field_7974:Lnet/minecraft/class_1781$class_1782;
      named CREEPER Lnet/minecraft/item/FireworkItem$Type;CREEPER:Lnet/minecraft/item/FireworkItem$Type;
    • BURST

      public static final FireworkItem.Type BURST
      Mappings:
      Namespace Name Mixin selector
      official e Lbnh$a;e:Lbnh$a;
      intermediary field_7970 Lnet/minecraft/class_1781$class_1782;field_7970:Lnet/minecraft/class_1781$class_1782;
      named BURST Lnet/minecraft/item/FireworkItem$Type;BURST:Lnet/minecraft/item/FireworkItem$Type;
  • Field Details

    • TYPES

      private static final FireworkItem.Type[] TYPES
      Mappings:
      Namespace Name Mixin selector
      official f Lbnh$a;f:[Lbnh$a;
      intermediary field_7975 Lnet/minecraft/class_1781$class_1782;field_7975:[Lnet/minecraft/class_1781$class_1782;
      named TYPES Lnet/minecraft/item/FireworkItem$Type;TYPES:[Lnet/minecraft/item/FireworkItem$Type;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      official g Lbnh$a;g:I
      intermediary field_7972 Lnet/minecraft/class_1781$class_1782;field_7972:I
      named id Lnet/minecraft/item/FireworkItem$Type;id:I
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official h Lbnh$a;h:Ljava/lang/String;
      intermediary field_7971 Lnet/minecraft/class_1781$class_1782;field_7971:Ljava/lang/String;
      named name Lnet/minecraft/item/FireworkItem$Type;name:Ljava/lang/String;
  • Constructor Details

    • Type

      private Type​(int id, String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbnh$a;<init>(Ljava/lang/String;IILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_1781$class_1782;<init>(Ljava/lang/String;IILjava/lang/String;)V
      named <init> Lnet/minecraft/item/FireworkItem$Type;<init>(Ljava/lang/String;IILjava/lang/String;)V
  • 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()
      Mappings:
      Namespace Name Mixin selector
      official a Lbnh$a;a()I
      intermediary method_7816 Lnet/minecraft/class_1781$class_1782;method_7816()I
      named getId Lnet/minecraft/item/FireworkItem$Type;getId()I
    • getName

      @Environment(CLIENT) public String getName()
      Mappings:
      Namespace Name Mixin selector
      official b Lbnh$a;b()Ljava/lang/String;
      intermediary method_7812 Lnet/minecraft/class_1781$class_1782;method_7812()Ljava/lang/String;
      named getName Lnet/minecraft/item/FireworkItem$Type;getName()Ljava/lang/String;
    • byId

      @Environment(CLIENT) public static FireworkItem.Type byId​(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lbnh$a;a(I)Lbnh$a;
      intermediary method_7813 Lnet/minecraft/class_1781$class_1782;method_7813(I)Lnet/minecraft/class_1781$class_1782;
      named byId Lnet/minecraft/item/FireworkItem$Type;byId(I)Lnet/minecraft/item/FireworkItem$Type;