Package net.minecraft.component.type
Record Class CustomModelDataComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.CustomModelDataComponent
- Record Components:
floats-flags-strings-colors-
public record CustomModelDataComponent(List<Float> floats, List<Boolean> flags, List<String> strings, List<Integer> colors)
extends Record
- Mappings:
Namespace Name named net/minecraft/component/type/CustomModelDataComponentintermediary net/minecraft/class_9280official dctnamed floatsintermediary comp_3354official dnamed flagsintermediary comp_3355official enamed stringsintermediary comp_3356official fnamed colorsintermediary comp_3357official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CustomModelDataComponent> The field for thecolorsrecord component.static final CustomModelDataComponentThe field for theflagsrecord component.The field for thefloatsrecord component.static final PacketCodec<ByteBuf, CustomModelDataComponent> The field for thestringsrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolors()Returns the value of thecolorsrecord component.final booleanIndicates whether some other object is "equal to" this one.flags()Returns the value of theflagsrecord component.floats()Returns the value of thefloatsrecord component.getColor(int index) getFlag(int index) getFloat(int index) getString(int index) private static <T> Tfinal inthashCode()Returns a hash code value for this object.strings()Returns the value of thestringsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
floats
The field for thefloatsrecord component. -
flags
The field for theflagsrecord component. -
strings
The field for thestringsrecord component. -
colors
The field for thecolorsrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/component/type/CustomModelDataComponent;DEFAULT:Lnet/minecraft/component/type/CustomModelDataComponent;intermediary field_55212Lnet/minecraft/class_9280;field_55212:Lnet/minecraft/class_9280;official aLdct;a:Ldct;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/CustomModelDataComponent;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49308Lnet/minecraft/class_9280;field_49308:Lcom/mojang/serialization/Codec;official bLdct;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/CustomModelDataComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49309Lnet/minecraft/class_9280;field_49309:Lnet/minecraft/class_9139;official cLdct;c:Lze;
-
-
Constructor Details
-
CustomModelDataComponent
-
-
Method Details
-
getValue
- Mappings:
Namespace Name Mixin selector named getValueLnet/minecraft/component/type/CustomModelDataComponent;getValue(Ljava/util/List;I)Ljava/lang/Object;intermediary method_65364Lnet/minecraft/class_9280;method_65364(Ljava/util/List;I)Ljava/lang/Object;official aLdct;a(Ljava/util/List;I)Ljava/lang/Object;
-
getFloat
- Mappings:
Namespace Name Mixin selector named getFloatLnet/minecraft/component/type/CustomModelDataComponent;getFloat(I)Ljava/lang/Float;intermediary method_65362Lnet/minecraft/class_9280;method_65362(I)Ljava/lang/Float;official aLdct;a(I)Ljava/lang/Float;
-
getFlag
- Mappings:
Namespace Name Mixin selector named getFlagLnet/minecraft/component/type/CustomModelDataComponent;getFlag(I)Ljava/lang/Boolean;intermediary method_65365Lnet/minecraft/class_9280;method_65365(I)Ljava/lang/Boolean;official bLdct;b(I)Ljava/lang/Boolean;
-
getString
- Mappings:
Namespace Name Mixin selector named getStringLnet/minecraft/component/type/CustomModelDataComponent;getString(I)Ljava/lang/String;intermediary method_65366Lnet/minecraft/class_9280;method_65366(I)Ljava/lang/String;official cLdct;c(I)Ljava/lang/String;
-
getColor
- Mappings:
Namespace Name Mixin selector named getColorLnet/minecraft/component/type/CustomModelDataComponent;getColor(I)Ljava/lang/Integer;intermediary method_65367Lnet/minecraft/class_9280;method_65367(I)Ljava/lang/Integer;official dLdct;d(I)Ljava/lang/Integer;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
floats
Returns the value of thefloatsrecord component.- Returns:
- the value of the
floatsrecord component
-
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
strings
Returns the value of thestringsrecord component.- Returns:
- the value of the
stringsrecord component
-
colors
Returns the value of thecolorsrecord component.- Returns:
- the value of the
colorsrecord component
-