Package net.minecraft.item
Enum 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$aintermediary net/minecraft/class_1781$class_1782named net/minecraft/item/FireworkItem$Type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description BURSTCREEPERLARGE_BALLSMALL_BALLSTAR -
Field Summary
Fields Modifier and Type Field Description private intidprivate Stringnameprivate static FireworkItem.Type[]TYPES -
Constructor Summary
-
Method Summary
Modifier and Type Method Description static FireworkItem.TypebyId(int id)intgetId()StringgetName()static FireworkItem.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static FireworkItem.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SMALL_BALL
- Mappings:
Namespace Name Mixin selector official aLbnh$a;a:Lbnh$a;intermediary field_7976Lnet/minecraft/class_1781$class_1782;field_7976:Lnet/minecraft/class_1781$class_1782;named SMALL_BALLLnet/minecraft/item/FireworkItem$Type;SMALL_BALL:Lnet/minecraft/item/FireworkItem$Type;
-
LARGE_BALL
- Mappings:
Namespace Name Mixin selector official bLbnh$a;b:Lbnh$a;intermediary field_7977Lnet/minecraft/class_1781$class_1782;field_7977:Lnet/minecraft/class_1781$class_1782;named LARGE_BALLLnet/minecraft/item/FireworkItem$Type;LARGE_BALL:Lnet/minecraft/item/FireworkItem$Type;
-
STAR
- Mappings:
Namespace Name Mixin selector official cLbnh$a;c:Lbnh$a;intermediary field_7973Lnet/minecraft/class_1781$class_1782;field_7973:Lnet/minecraft/class_1781$class_1782;named STARLnet/minecraft/item/FireworkItem$Type;STAR:Lnet/minecraft/item/FireworkItem$Type;
-
CREEPER
- Mappings:
Namespace Name Mixin selector official dLbnh$a;d:Lbnh$a;intermediary field_7974Lnet/minecraft/class_1781$class_1782;field_7974:Lnet/minecraft/class_1781$class_1782;named CREEPERLnet/minecraft/item/FireworkItem$Type;CREEPER:Lnet/minecraft/item/FireworkItem$Type;
-
BURST
- Mappings:
Namespace Name Mixin selector official eLbnh$a;e:Lbnh$a;intermediary field_7970Lnet/minecraft/class_1781$class_1782;field_7970:Lnet/minecraft/class_1781$class_1782;named BURSTLnet/minecraft/item/FireworkItem$Type;BURST:Lnet/minecraft/item/FireworkItem$Type;
-
-
Field Details
-
TYPES
- Mappings:
Namespace Name Mixin selector official fLbnh$a;f:[Lbnh$a;intermediary field_7975Lnet/minecraft/class_1781$class_1782;field_7975:[Lnet/minecraft/class_1781$class_1782;named TYPESLnet/minecraft/item/FireworkItem$Type;TYPES:[Lnet/minecraft/item/FireworkItem$Type;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official gLbnh$a;g:Iintermediary field_7972Lnet/minecraft/class_1781$class_1782;field_7972:Inamed idLnet/minecraft/item/FireworkItem$Type;id:I
-
name
- Mappings:
Namespace Name Mixin selector official hLbnh$a;h:Ljava/lang/String;intermediary field_7971Lnet/minecraft/class_1781$class_1782;field_7971:Ljava/lang/String;named nameLnet/minecraft/item/FireworkItem$Type;name:Ljava/lang/String;
-
-
Constructor Details
-
Type
- Mappings:
Namespace Name Mixin selector official <init>Lbnh$a;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1781$class_1782;<init>(Ljava/lang/String;IILjava/lang/String;)Vnamed <init>Lnet/minecraft/item/FireworkItem$Type;<init>(Ljava/lang/String;IILjava/lang/String;)V
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLbnh$a;a()Iintermediary method_7816Lnet/minecraft/class_1781$class_1782;method_7816()Inamed getIdLnet/minecraft/item/FireworkItem$Type;getId()I
-
getName
- Mappings:
Namespace Name Mixin selector official bLbnh$a;b()Ljava/lang/String;intermediary method_7812Lnet/minecraft/class_1781$class_1782;method_7812()Ljava/lang/String;named getNameLnet/minecraft/item/FireworkItem$Type;getName()Ljava/lang/String;
-
byId
- Mappings:
Namespace Name Mixin selector official aLbnh$a;a(I)Lbnh$a;intermediary method_7813Lnet/minecraft/class_1781$class_1782;method_7813(I)Lnet/minecraft/class_1781$class_1782;named byIdLnet/minecraft/item/FireworkItem$Type;byId(I)Lnet/minecraft/item/FireworkItem$Type;
-