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/CustomModelDataComponent
intermediary net/minecraft/class_9280
official cxh
named value
intermediary comp_2382
official d
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<CustomModelDataComponent> static final CustomModelDataComponent
static final PacketCodec
<ByteBuf, CustomModelDataComponent> private final int
The field for thevalue
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.int
value()
Returns the value of thevalue
record component.
-
Field Details
-
value
private final int valueThe field for thevalue
record component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULT
Lnet/minecraft/component/type/CustomModelDataComponent;DEFAULT:Lnet/minecraft/component/type/CustomModelDataComponent;
intermediary field_49307
Lnet/minecraft/class_9280;field_49307:Lnet/minecraft/class_9280;
official a
Lcxh;a:Lcxh;
-
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
Lcxh;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
Lcxh;c:Lzn;
-
-
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 thevalue
record component.- Returns:
- the value of the
value
record component
-