Package net.minecraft.component.type
Enum Class AttributeModifiersComponent.Display.Type
java.lang.Object
java.lang.Enum<AttributeModifiersComponent.Display.Type>
net.minecraft.component.type.AttributeModifiersComponent.Display.Type
- All Implemented Interfaces:
Serializable,Comparable<AttributeModifiersComponent.Display.Type>,Constable,StringIdentifiable
- Enclosing interface:
AttributeModifiersComponent.Display
public static enum AttributeModifiersComponent.Display.Type
extends Enum<AttributeModifiersComponent.Display.Type>
implements StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/component/type/AttributeModifiersComponent$Display$Typeintermediary net/minecraft/class_9285$class_11193$class_11197official dfm$b$d
-
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 TypeFieldDescription(package private) final com.mojang.serialization.MapCodec<? extends AttributeModifiersComponent.Display> (package private) static final com.mojang.serialization.Codec<AttributeModifiersComponent.Display.Type> private final Stringprivate final intprivate static final IntFunction<AttributeModifiersComponent.Display.Type> (package private) static final PacketCodec<ByteBuf, AttributeModifiersComponent.Display.Type> private final PacketCodec<RegistryByteBuf, ? extends AttributeModifiersComponent.Display> Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateType(String id, int index, com.mojang.serialization.MapCodec<? extends AttributeModifiersComponent.Display> codec, PacketCodec<RegistryByteBuf, ? extends AttributeModifiersComponent.Display> packetCodec) -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.private intgetIndex()private PacketCodec<RegistryByteBuf, ? extends AttributeModifiersComponent.Display> Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;DEFAULT:Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;intermediary field_59739Lnet/minecraft/class_9285$class_11193$class_11197;field_59739:Lnet/minecraft/class_9285$class_11193$class_11197;official aLdfm$b$d;a:Ldfm$b$d;
-
HIDDEN
- Mappings:
Namespace Name Mixin selector named HIDDENLnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;HIDDEN:Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;intermediary field_59740Lnet/minecraft/class_9285$class_11193$class_11197;field_59740:Lnet/minecraft/class_9285$class_11193$class_11197;official bLdfm$b$d;b:Ldfm$b$d;
-
OVERRIDE
- Mappings:
Namespace Name Mixin selector named OVERRIDELnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;OVERRIDE:Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;intermediary field_59741Lnet/minecraft/class_9285$class_11193$class_11197;field_59741:Lnet/minecraft/class_9285$class_11193$class_11197;official cLdfm$b$d;c:Ldfm$b$d;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;CODEC:Lcom/mojang/serialization/Codec;intermediary field_59742Lnet/minecraft/class_9285$class_11193$class_11197;field_59742:Lcom/mojang/serialization/Codec;official dLdfm$b$d;d:Lcom/mojang/serialization/Codec;
-
INDEX_MAPPER
- Mappings:
Namespace Name Mixin selector named INDEX_MAPPERLnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;INDEX_MAPPER:Ljava/util/function/IntFunction;intermediary field_59743Lnet/minecraft/class_9285$class_11193$class_11197;field_59743:Ljava/util/function/IntFunction;official eLdfm$b$d;e:Ljava/util/function/IntFunction;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_59744Lnet/minecraft/class_9285$class_11193$class_11197;field_59744:Lnet/minecraft/class_9139;official fLdfm$b$d;f:Lzm;
-
id
- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;id:Ljava/lang/String;intermediary field_59745Lnet/minecraft/class_9285$class_11193$class_11197;field_59745:Ljava/lang/String;official gLdfm$b$d;g:Ljava/lang/String;
-
index
private final int index- Mappings:
Namespace Name Mixin selector named indexLnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;index:Iintermediary field_59746Lnet/minecraft/class_9285$class_11193$class_11197;field_59746:Iofficial hLdfm$b$d;h:I
-
codec
- Mappings:
Namespace Name Mixin selector named codecLnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;codec:Lcom/mojang/serialization/MapCodec;intermediary field_59747Lnet/minecraft/class_9285$class_11193$class_11197;field_59747:Lcom/mojang/serialization/MapCodec;official iLdfm$b$d;i:Lcom/mojang/serialization/MapCodec;
-
packetCodec
private final PacketCodec<RegistryByteBuf,? extends AttributeModifiersComponent.Display> packetCodec- Mappings:
Namespace Name Mixin selector named packetCodecLnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;packetCodec:Lnet/minecraft/network/codec/PacketCodec;intermediary field_59748Lnet/minecraft/class_9285$class_11193$class_11197;field_59748:Lnet/minecraft/class_9139;official jLdfm$b$d;j:Lzm;
-
-
Constructor Details
-
Type
private Type(String id, int index, com.mojang.serialization.MapCodec<? extends AttributeModifiersComponent.Display> codec, PacketCodec<RegistryByteBuf, ? extends AttributeModifiersComponent.Display> packetCodec) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;<init>(Ljava/lang/String;ILjava/lang/String;ILcom/mojang/serialization/MapCodec;Lnet/minecraft/network/codec/PacketCodec;)Vintermediary <init>Lnet/minecraft/class_9285$class_11193$class_11197;<init>(Ljava/lang/String;ILjava/lang/String;ILcom/mojang/serialization/MapCodec;Lnet/minecraft/class_9139;)Vofficial <init>Ldfm$b$d;<init>(Ljava/lang/String;ILjava/lang/String;ILcom/mojang/serialization/MapCodec;Lzm;)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
-
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 named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbda;c()Ljava/lang/String;
-
getIndex
private int getIndex()- Mappings:
Namespace Name Mixin selector named getIndexLnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;getIndex()Iintermediary method_70736Lnet/minecraft/class_9285$class_11193$class_11197;method_70736()Iofficial aLdfm$b$d;a()I
-
getPacketCodec
- Mappings:
Namespace Name Mixin selector named getPacketCodecLnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;getPacketCodec()Lnet/minecraft/network/codec/PacketCodec;intermediary method_70737Lnet/minecraft/class_9285$class_11193$class_11197;method_70737()Lnet/minecraft/class_9139;official bLdfm$b$d;b()Lzm;
-