Record Class FollowerHistory.ActorPose
java.lang.Object
java.lang.Record
ac.boar.anticheat.prediction.vehicle.FollowerHistory.ActorPose
- Enclosing class:
FollowerHistory
public static record FollowerHistory.ActorPose(float x, float y, float z, float pitch, float yaw, float headYaw, boolean onGround)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionActorPose(float x, float y, float z, float pitch, float yaw, float headYaw, boolean onGround) Creates an instance of aActorPoserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatheadYaw()Returns the value of theheadYawrecord component.booleanonGround()Returns the value of theonGroundrecord component.floatpitch()Returns the value of thepitchrecord component.final StringtoString()Returns a string representation of this record class.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.floatyaw()Returns the value of theyawrecord component.floatz()Returns the value of thezrecord component.
-
Constructor Details
-
ActorPose
public ActorPose(float x, float y, float z, float pitch, float yaw, float headYaw, boolean onGround) Creates an instance of aActorPoserecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentpitch- the value for thepitchrecord componentyaw- the value for theyawrecord componentheadYaw- the value for theheadYawrecord componentonGround- the value for theonGroundrecord 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 with '=='. -
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public float z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
pitch
public float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
headYaw
public float headYaw()Returns the value of theheadYawrecord component.- Returns:
- the value of the
headYawrecord component
-
onGround
public boolean onGround()Returns the value of theonGroundrecord component.- Returns:
- the value of the
onGroundrecord component
-