Record Class BedrockBoneAnimation.Transform
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockBoneAnimation.Transform
- Enclosing class:
BedrockBoneAnimation
public static record BedrockBoneAnimation.Transform(BedrockBoneAnimation.Vector position, BedrockBoneAnimation.Vector rotation, BedrockBoneAnimation.Vector scale, boolean entityRelativeRotation)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTransform(BedrockBoneAnimation.Vector position, BedrockBoneAnimation.Vector rotation, BedrockBoneAnimation.Vector scale, boolean entityRelativeRotation) Creates an instance of aTransformrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theentityRelativeRotationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.position()Returns the value of thepositionrecord component.rotation()Returns the value of therotationrecord component.scale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Transform
public Transform(BedrockBoneAnimation.Vector position, BedrockBoneAnimation.Vector rotation, BedrockBoneAnimation.Vector scale, boolean entityRelativeRotation) Creates an instance of aTransformrecord class.- Parameters:
position- the value for thepositionrecord componentrotation- the value for therotationrecord componentscale- the value for thescalerecord componententityRelativeRotation- the value for theentityRelativeRotationrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
rotation
Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
entityRelativeRotation
public boolean entityRelativeRotation()Returns the value of theentityRelativeRotationrecord component.- Returns:
- the value of the
entityRelativeRotationrecord component
-