Package net.minecraft.item
Enum Class FireworkRocketItem.Type
- All Implemented Interfaces:
Serializable
,Comparable<FireworkRocketItem.Type>
,Constable
- Enclosing class:
FireworkRocketItem
- Mappings:
Namespace Name official cfd$a
intermediary net/minecraft/class_1781$class_1782
named net/minecraft/item/FireworkRocketItem$Type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final IntFunction<FireworkRocketItem.Type>
private final int
private final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FireworkRocketItem.Type
byId
(int id) int
getId()
getName()
static FireworkRocketItem.Type
Returns the enum constant of this class with the specified name.static FireworkRocketItem.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SMALL_BALL
- Mappings:
Namespace Name Mixin selector official a
Lcfd$a;a:Lcfd$a;
intermediary field_7976
Lnet/minecraft/class_1781$class_1782;field_7976:Lnet/minecraft/class_1781$class_1782;
named SMALL_BALL
Lnet/minecraft/item/FireworkRocketItem$Type;SMALL_BALL:Lnet/minecraft/item/FireworkRocketItem$Type;
-
LARGE_BALL
- Mappings:
Namespace Name Mixin selector official b
Lcfd$a;b:Lcfd$a;
intermediary field_7977
Lnet/minecraft/class_1781$class_1782;field_7977:Lnet/minecraft/class_1781$class_1782;
named LARGE_BALL
Lnet/minecraft/item/FireworkRocketItem$Type;LARGE_BALL:Lnet/minecraft/item/FireworkRocketItem$Type;
-
STAR
- Mappings:
Namespace Name Mixin selector official c
Lcfd$a;c:Lcfd$a;
intermediary field_7973
Lnet/minecraft/class_1781$class_1782;field_7973:Lnet/minecraft/class_1781$class_1782;
named STAR
Lnet/minecraft/item/FireworkRocketItem$Type;STAR:Lnet/minecraft/item/FireworkRocketItem$Type;
-
CREEPER
- Mappings:
Namespace Name Mixin selector official d
Lcfd$a;d:Lcfd$a;
intermediary field_7974
Lnet/minecraft/class_1781$class_1782;field_7974:Lnet/minecraft/class_1781$class_1782;
named CREEPER
Lnet/minecraft/item/FireworkRocketItem$Type;CREEPER:Lnet/minecraft/item/FireworkRocketItem$Type;
-
BURST
- Mappings:
Namespace Name Mixin selector official e
Lcfd$a;e:Lcfd$a;
intermediary field_7970
Lnet/minecraft/class_1781$class_1782;field_7970:Lnet/minecraft/class_1781$class_1782;
named BURST
Lnet/minecraft/item/FireworkRocketItem$Type;BURST:Lnet/minecraft/item/FireworkRocketItem$Type;
-
-
Field Details
-
BY_ID
- Mappings:
Namespace Name Mixin selector official f
Lcfd$a;f:Ljava/util/function/IntFunction;
intermediary field_7975
Lnet/minecraft/class_1781$class_1782;field_7975:Ljava/util/function/IntFunction;
named BY_ID
Lnet/minecraft/item/FireworkRocketItem$Type;BY_ID:Ljava/util/function/IntFunction;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official g
Lcfd$a;g:I
intermediary field_7972
Lnet/minecraft/class_1781$class_1782;field_7972:I
named id
Lnet/minecraft/item/FireworkRocketItem$Type;id:I
-
name
- Mappings:
Namespace Name Mixin selector official h
Lcfd$a;h:Ljava/lang/String;
intermediary field_7971
Lnet/minecraft/class_1781$class_1782;field_7971:Ljava/lang/String;
named name
Lnet/minecraft/item/FireworkRocketItem$Type;name:Ljava/lang/String;
-
-
Constructor Details
-
Type
- Mappings:
Namespace Name Mixin selector official <init>
Lcfd$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/FireworkRocketItem$Type;<init>(Ljava/lang/String;IILjava/lang/String;)V
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official a
Lcfd$a;a()I
intermediary method_7816
Lnet/minecraft/class_1781$class_1782;method_7816()I
named getId
Lnet/minecraft/item/FireworkRocketItem$Type;getId()I
-
getName
- Mappings:
Namespace Name Mixin selector official b
Lcfd$a;b()Ljava/lang/String;
intermediary method_7812
Lnet/minecraft/class_1781$class_1782;method_7812()Ljava/lang/String;
named getName
Lnet/minecraft/item/FireworkRocketItem$Type;getName()Ljava/lang/String;
-
byId
- Mappings:
Namespace Name Mixin selector official a
Lcfd$a;a(I)Lcfd$a;
intermediary method_7813
Lnet/minecraft/class_1781$class_1782;method_7813(I)Lnet/minecraft/class_1781$class_1782;
named byId
Lnet/minecraft/item/FireworkRocketItem$Type;byId(I)Lnet/minecraft/item/FireworkRocketItem$Type;
-