Record Class ArmorStand.ArmorStandPose
java.lang.Object
java.lang.Record
net.minecraft.world.entity.decoration.ArmorStand.ArmorStandPose
- Enclosing class:
ArmorStand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RotationsThe field for thebodyrecord component.static final com.mojang.serialization.Codec<ArmorStand.ArmorStandPose> static final ArmorStand.ArmorStandPoseprivate final RotationsThe field for theheadrecord component.private final RotationsThe field for theleftArmrecord component.private final RotationsThe field for theleftLegrecord component.private final RotationsThe field for therightArmrecord component.private final RotationsThe field for therightLegrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.head()Returns the value of theheadrecord component.leftArm()Returns the value of theleftArmrecord component.leftLeg()Returns the value of theleftLegrecord component.rightArm()Returns the value of therightArmrecord component.rightLeg()Returns the value of therightLegrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
head
The field for theheadrecord component. -
body
The field for thebodyrecord component. -
leftArm
The field for theleftArmrecord component. -
rightArm
The field for therightArmrecord component. -
leftLeg
The field for theleftLegrecord component. -
rightLeg
The field for therightLegrecord component. -
DEFAULT
-
CODEC
-
-
Constructor Details
-
ArmorStandPose
public ArmorStandPose(Rotations head, Rotations body, Rotations leftArm, Rotations rightArm, Rotations leftLeg, Rotations rightLeg) Creates an instance of aArmorStandPoserecord class.- Parameters:
head- the value for theheadrecord componentbody- the value for thebodyrecord componentleftArm- the value for theleftArmrecord componentrightArm- the value for therightArmrecord componentleftLeg- the value for theleftLegrecord componentrightLeg- the value for therightLegrecord component
-
-
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 withObjects::equals(Object,Object). -
head
Returns the value of theheadrecord component.- Returns:
- the value of the
headrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
leftArm
Returns the value of theleftArmrecord component.- Returns:
- the value of the
leftArmrecord component
-
rightArm
Returns the value of therightArmrecord component.- Returns:
- the value of the
rightArmrecord component
-
leftLeg
Returns the value of theleftLegrecord component.- Returns:
- the value of the
leftLegrecord component
-
rightLeg
Returns the value of therightLegrecord component.- Returns:
- the value of the
rightLegrecord component
-