Record Class RootMotion
java.lang.Object
java.lang.Record
com.ticxo.modelengine.api.animation.rootmotion.RootMotion
public record RootMotion(org.joml.Vector3f velocity, float yaw, boolean boneOnGround)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRootMotion(org.joml.Vector3f velocity, float yaw, boolean boneOnGround) Creates an instance of aRootMotionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theboneOnGroundrecord component.org.bukkit.util.Vectordelta()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.org.joml.Vector3fvelocity()Returns the value of thevelocityrecord component.floatyaw()Returns the value of theyawrecord component.
-
Constructor Details
-
RootMotion
public RootMotion(org.joml.Vector3f velocity, float yaw, boolean boneOnGround) Creates an instance of aRootMotionrecord class.- Parameters:
velocity- the value for thevelocityrecord componentyaw- the value for theyawrecord componentboneOnGround- the value for theboneOnGroundrecord component
-
-
Method Details
-
delta
public org.bukkit.util.Vector delta() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
velocity
public org.joml.Vector3f velocity()Returns the value of thevelocityrecord component.- Returns:
- the value of the
velocityrecord component
-
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
boneOnGround
public boolean boneOnGround()Returns the value of theboneOnGroundrecord component.- Returns:
- the value of the
boneOnGroundrecord component
-