Record Class MainHand
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.item.properties.select.MainHand
- All Implemented Interfaces:
SelectItemModelProperty<HumanoidArm>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.renderer.item.properties.select.SelectItemModelProperty
SelectItemModelProperty.Type<P extends SelectItemModelProperty<T>,
T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SelectItemModelProperty.Type
<MainHand, HumanoidArm> static final com.mojang.serialization.Codec
<HumanoidArm> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.get
(ItemStack p_387406_, ClientLevel p_387423_, LivingEntity p_388453_, int p_388098_, ItemDisplayContext p_386609_) final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.type()
com.mojang.serialization.Codec
<HumanoidArm>
-
Field Details
-
VALUE_CODEC
-
TYPE
-
-
Constructor Details
-
MainHand
public MainHand()Creates an instance of aMainHand
record class.
-
-
Method Details
-
get
@Nullable public HumanoidArm get(ItemStack p_387406_, @Nullable ClientLevel p_387423_, @Nullable LivingEntity p_388453_, int p_388098_, ItemDisplayContext p_386609_) - Specified by:
get
in interfaceSelectItemModelProperty<HumanoidArm>
-
type
- Specified by:
type
in interfaceSelectItemModelProperty<HumanoidArm>
-
valueCodec
- Specified by:
valueCodec
in interfaceSelectItemModelProperty<HumanoidArm>
-
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.
-