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/CustomModelDataComponent- intermediary - net/minecraft/class_9280- official - cza- named - floats- intermediary - comp_3354- official - d- named - flags- intermediary - comp_3355- official - e- named - strings- intermediary - comp_3356- official - f- named - colors- intermediary - comp_3357- official - g
- 
Field SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
floatsThe field for thefloatsrecord component.
- 
flagsThe field for theflagsrecord component.
- 
stringsThe field for thestringsrecord component.
- 
colorsThe field for thecolorsrecord component.
- 
DEFAULT- Mappings:
- Namespace - Name - Mixin selector - named - DEFAULT- Lnet/minecraft/component/type/CustomModelDataComponent;DEFAULT:Lnet/minecraft/component/type/CustomModelDataComponent;- intermediary - field_55212- Lnet/minecraft/class_9280;field_55212:Lnet/minecraft/class_9280;- official - a- Lcza;a:Lcza;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/component/type/CustomModelDataComponent;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_49308- Lnet/minecraft/class_9280;field_49308:Lcom/mojang/serialization/Codec;- official - b- Lcza;b:Lcom/mojang/serialization/Codec;
 
- 
PACKET_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - PACKET_CODEC- Lnet/minecraft/component/type/CustomModelDataComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;- intermediary - field_49309- Lnet/minecraft/class_9280;field_49309:Lnet/minecraft/class_9139;- official - c- Lcza;c:Lyn;
 
 
- 
- 
Constructor Details- 
CustomModelDataComponent
 
- 
- 
Method Details- 
getValue- Mappings:
- Namespace - Name - Mixin selector - named - getValue- Lnet/minecraft/component/type/CustomModelDataComponent;getValue(Ljava/util/List;I)Ljava/lang/Object;- intermediary - method_65364- Lnet/minecraft/class_9280;method_65364(Ljava/util/List;I)Ljava/lang/Object;- official - a- Lcza;a(Ljava/util/List;I)Ljava/lang/Object;
 
- 
getFloat- Mappings:
- Namespace - Name - Mixin selector - named - getFloat- Lnet/minecraft/component/type/CustomModelDataComponent;getFloat(I)Ljava/lang/Float;- intermediary - method_65362- Lnet/minecraft/class_9280;method_65362(I)Ljava/lang/Float;- official - a- Lcza;a(I)Ljava/lang/Float;
 
- 
getFlag- Mappings:
- Namespace - Name - Mixin selector - named - getFlag- Lnet/minecraft/component/type/CustomModelDataComponent;getFlag(I)Ljava/lang/Boolean;- intermediary - method_65365- Lnet/minecraft/class_9280;method_65365(I)Ljava/lang/Boolean;- official - b- Lcza;b(I)Ljava/lang/Boolean;
 
- 
getString- Mappings:
- Namespace - Name - Mixin selector - named - getString- Lnet/minecraft/component/type/CustomModelDataComponent;getString(I)Ljava/lang/String;- intermediary - method_65366- Lnet/minecraft/class_9280;method_65366(I)Ljava/lang/String;- official - c- Lcza;c(I)Ljava/lang/String;
 
- 
getColor- Mappings:
- Namespace - Name - Mixin selector - named - getColor- Lnet/minecraft/component/type/CustomModelDataComponent;getColor(I)Ljava/lang/Integer;- intermediary - method_65367- Lnet/minecraft/class_9280;method_65367(I)Ljava/lang/Integer;- official - d- Lcza;d(I)Ljava/lang/Integer;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
floatsReturns the value of thefloatsrecord component.- Returns:
- the value of the floatsrecord component
 
- 
flagsReturns the value of theflagsrecord component.- Returns:
- the value of the flagsrecord component
 
- 
stringsReturns the value of thestringsrecord component.- Returns:
- the value of the stringsrecord component
 
- 
colorsReturns the value of thecolorsrecord component.- Returns:
- the value of the colorsrecord component
 
 
-