Package net.minecraft.component.type
Enum Class FireworkExplosionComponent.Type
java.lang.Object
java.lang.Enum<FireworkExplosionComponent.Type>
net.minecraft.component.type.FireworkExplosionComponent.Type
- All Implemented Interfaces:
Serializable,Comparable<FireworkExplosionComponent.Type>,Constable,StringIdentifiable
- Enclosing class:
FireworkExplosionComponent
public static enum FireworkExplosionComponent.Type
extends Enum<FireworkExplosionComponent.Type>
implements StringIdentifiable
- Mappings:
Namespace Name official cxj$aintermediary net/minecraft/class_9283$class_1782named net/minecraft/component/type/FireworkExplosionComponent$Type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntFunction<FireworkExplosionComponent.Type> static final com.mojang.serialization.Codec<FireworkExplosionComponent.Type> private final intprivate final Stringstatic final PacketCodec<ByteBuf, FireworkExplosionComponent.Type> Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.byId(int id) intgetId()getName()Returns the enum constant of this class with the specified name.static FireworkExplosionComponent.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 aLcxj$a;a:Lcxj$a;intermediary field_7976Lnet/minecraft/class_9283$class_1782;field_7976:Lnet/minecraft/class_9283$class_1782;named SMALL_BALLLnet/minecraft/component/type/FireworkExplosionComponent$Type;SMALL_BALL:Lnet/minecraft/component/type/FireworkExplosionComponent$Type;
-
LARGE_BALL
- Mappings:
Namespace Name Mixin selector official bLcxj$a;b:Lcxj$a;intermediary field_7977Lnet/minecraft/class_9283$class_1782;field_7977:Lnet/minecraft/class_9283$class_1782;named LARGE_BALLLnet/minecraft/component/type/FireworkExplosionComponent$Type;LARGE_BALL:Lnet/minecraft/component/type/FireworkExplosionComponent$Type;
-
STAR
- Mappings:
Namespace Name Mixin selector official cLcxj$a;c:Lcxj$a;intermediary field_7973Lnet/minecraft/class_9283$class_1782;field_7973:Lnet/minecraft/class_9283$class_1782;named STARLnet/minecraft/component/type/FireworkExplosionComponent$Type;STAR:Lnet/minecraft/component/type/FireworkExplosionComponent$Type;
-
CREEPER
- Mappings:
Namespace Name Mixin selector official dLcxj$a;d:Lcxj$a;intermediary field_7974Lnet/minecraft/class_9283$class_1782;field_7974:Lnet/minecraft/class_9283$class_1782;named CREEPERLnet/minecraft/component/type/FireworkExplosionComponent$Type;CREEPER:Lnet/minecraft/component/type/FireworkExplosionComponent$Type;
-
BURST
- Mappings:
Namespace Name Mixin selector official eLcxj$a;e:Lcxj$a;intermediary field_7970Lnet/minecraft/class_9283$class_1782;field_7970:Lnet/minecraft/class_9283$class_1782;named BURSTLnet/minecraft/component/type/FireworkExplosionComponent$Type;BURST:Lnet/minecraft/component/type/FireworkExplosionComponent$Type;
-
-
Field Details
-
BY_ID
- Mappings:
Namespace Name Mixin selector official hLcxj$a;h:Ljava/util/function/IntFunction;intermediary field_7975Lnet/minecraft/class_9283$class_1782;field_7975:Ljava/util/function/IntFunction;named BY_IDLnet/minecraft/component/type/FireworkExplosionComponent$Type;BY_ID:Ljava/util/function/IntFunction;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official fLcxj$a;f:Lzc;intermediary field_49321Lnet/minecraft/class_9283$class_1782;field_49321:Lnet/minecraft/class_9139;named PACKET_CODECLnet/minecraft/component/type/FireworkExplosionComponent$Type;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official gLcxj$a;g:Lcom/mojang/serialization/Codec;intermediary field_49322Lnet/minecraft/class_9283$class_1782;field_49322:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/component/type/FireworkExplosionComponent$Type;CODEC:Lcom/mojang/serialization/Codec;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official iLcxj$a;i:Iintermediary field_7972Lnet/minecraft/class_9283$class_1782;field_7972:Inamed idLnet/minecraft/component/type/FireworkExplosionComponent$Type;id:I
-
name
- Mappings:
Namespace Name Mixin selector official jLcxj$a;j:Ljava/lang/String;intermediary field_7971Lnet/minecraft/class_9283$class_1782;field_7971:Ljava/lang/String;named nameLnet/minecraft/component/type/FireworkExplosionComponent$Type;name:Ljava/lang/String;
-
-
Constructor Details
-
Type
- Mappings:
Namespace Name Mixin selector official <init>Lcxj$a;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_9283$class_1782;<init>(Ljava/lang/String;IILjava/lang/String;)Vnamed <init>Lnet/minecraft/component/type/FireworkExplosionComponent$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
-
getName
- Mappings:
Namespace Name Mixin selector official aLcxj$a;a()Lxs;intermediary method_7812Lnet/minecraft/class_9283$class_1782;method_7812()Lnet/minecraft/class_5250;named getNameLnet/minecraft/component/type/FireworkExplosionComponent$Type;getName()Lnet/minecraft/text/MutableText;
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official bLcxj$a;b()Iintermediary method_7816Lnet/minecraft/class_9283$class_1782;method_7816()Inamed getIdLnet/minecraft/component/type/FireworkExplosionComponent$Type;getId()I
-
byId
- Mappings:
Namespace Name Mixin selector official aLcxj$a;a(I)Lcxj$a;intermediary method_7813Lnet/minecraft/class_9283$class_1782;method_7813(I)Lnet/minecraft/class_9283$class_1782;named byIdLnet/minecraft/component/type/FireworkExplosionComponent$Type;byId(I)Lnet/minecraft/component/type/FireworkExplosionComponent$Type;
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector official cLazg;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-