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 Rotations
The field for thebody
record component.static final com.mojang.serialization.Codec
<ArmorStand.ArmorStandPose> static final ArmorStand.ArmorStandPose
private final Rotations
The field for thehead
record component.private final Rotations
The field for theleftArm
record component.private final Rotations
The field for theleftLeg
record component.private final Rotations
The field for therightArm
record component.private final Rotations
The field for therightLeg
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()
Returns the value of thebody
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.head()
Returns the value of thehead
record component.leftArm()
Returns the value of theleftArm
record component.leftLeg()
Returns the value of theleftLeg
record component.rightArm()
Returns the value of therightArm
record component.rightLeg()
Returns the value of therightLeg
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
head
The field for thehead
record component. -
body
The field for thebody
record component. -
leftArm
The field for theleftArm
record component. -
rightArm
The field for therightArm
record component. -
leftLeg
The field for theleftLeg
record component. -
rightLeg
The field for therightLeg
record component. -
DEFAULT
-
CODEC
-
-
Constructor Details
-
ArmorStandPose
public ArmorStandPose(Rotations head, Rotations body, Rotations leftArm, Rotations rightArm, Rotations leftLeg, Rotations rightLeg) Creates an instance of aArmorStandPose
record class.- Parameters:
head
- the value for thehead
record componentbody
- the value for thebody
record componentleftArm
- the value for theleftArm
record componentrightArm
- the value for therightArm
record componentleftLeg
- the value for theleftLeg
record componentrightLeg
- the value for therightLeg
record 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 thehead
record component.- Returns:
- the value of the
head
record component
-
body
Returns the value of thebody
record component.- Returns:
- the value of the
body
record component
-
leftArm
Returns the value of theleftArm
record component.- Returns:
- the value of the
leftArm
record component
-
rightArm
Returns the value of therightArm
record component.- Returns:
- the value of the
rightArm
record component
-
leftLeg
Returns the value of theleftLeg
record component.- Returns:
- the value of the
leftLeg
record component
-
rightLeg
Returns the value of therightLeg
record component.- Returns:
- the value of the
rightLeg
record component
-