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 Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<CustomModelDataComponent> The field for thecolors
record component.static final CustomModelDataComponent
The field for theflags
record component.The field for thefloats
record component.static final PacketCodec
<ByteBuf, CustomModelDataComponent> The field for thestrings
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolors()
Returns the value of thecolors
record component.final boolean
Indicates whether some other object is "equal to" this one.flags()
Returns the value of theflags
record component.floats()
Returns the value of thefloats
record component.getColor
(int index) getFlag
(int index) getFloat
(int index) getString
(int index) private static <T> T
final int
hashCode()
Returns a hash code value for this object.strings()
Returns the value of thestrings
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
floats
The field for thefloats
record component. -
flags
The field for theflags
record component. -
strings
The field for thestrings
record component. -
colors
The field for thecolors
record 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
-
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;
-
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 thefloats
record component.- Returns:
- the value of the
floats
record component
-
flags
Returns the value of theflags
record component.- Returns:
- the value of the
flags
record component
-
strings
Returns the value of thestrings
record component.- Returns:
- the value of the
strings
record component
-
colors
Returns the value of thecolors
record component.- Returns:
- the value of the
colors
record component
-