Package net.minecraft.component.type
Record Class CustomModelDataComponent
java.lang.Object
java.lang.Record
net.minecraft.component.type.CustomModelDataComponent
- Record Components:
value-
- Mappings:
Namespace Name named net/minecraft/component/type/CustomModelDataComponentintermediary net/minecraft/class_9280official cxinamed valueintermediary comp_2382official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CustomModelDataComponent> static final CustomModelDataComponentstatic final PacketCodec<ByteBuf, CustomModelDataComponent> private final intThe field for thevaluerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.
-
Field Details
-
value
private final int valueThe field for thevaluerecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/component/type/CustomModelDataComponent;DEFAULT:Lnet/minecraft/component/type/CustomModelDataComponent;intermediary field_49307Lnet/minecraft/class_9280;field_49307:Lnet/minecraft/class_9280;official aLcxi;a:Lcxi;
-
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 bLcxi;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 cLcxi;c:Lyx;
-
-
Constructor Details
-
CustomModelDataComponent
public CustomModelDataComponent(int int2)
-
-
Method Details
-
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 with '=='. -
value
public int value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-