Package ac.boar.anticheat.ack.types
Record Class FollowerMoveAck
java.lang.Object
java.lang.Record
ac.boar.anticheat.ack.types.FollowerMoveAck
- All Implemented Interfaces:
Acknowledgment
public record FollowerMoveAck(EntityCache entity, long sentNs, float x, float y, float z, float pitch, float yaw, float headYaw, boolean onGround, boolean addedActor, boolean ordinaryActorMove, boolean afterRideClearedInList)
extends Record
implements Acknowledgment
-
Constructor Summary
ConstructorsConstructorDescriptionFollowerMoveAck(EntityCache entity, long sentNs, float x, float y, float z, float pitch, float yaw, float headYaw, boolean onGround, boolean addedActor, boolean ordinaryActorMove, boolean afterRideClearedInList) Creates an instance of aFollowerMoveAckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theaddedActorrecord component.booleanReturns the value of theafterRideClearedInListrecord component.boat()entity()Returns the value of theentityrecord component.final 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.booleanReturns the value of theordinaryActorMoverecord component.floatpitch()Returns the value of thepitchrecord component.longsentNs()Returns the value of thesentNsrecord 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
-
FollowerMoveAck
public FollowerMoveAck(EntityCache entity, long sentNs, float x, float y, float z, float pitch, float yaw, float headYaw, boolean onGround, boolean addedActor, boolean ordinaryActorMove, boolean afterRideClearedInList) Creates an instance of aFollowerMoveAckrecord class.- Parameters:
entity- the value for theentityrecord componentsentNs- the value for thesentNsrecord componentx- 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 componentaddedActor- the value for theaddedActorrecord componentordinaryActorMove- the value for theordinaryActorMoverecord componentafterRideClearedInList- the value for theafterRideClearedInListrecord component
-
-
Method Details
-
withRideClearedInList
-
boat
-
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 '=='. -
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-
sentNs
public long sentNs()Returns the value of thesentNsrecord component.- Returns:
- the value of the
sentNsrecord component
-
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
-
addedActor
public boolean addedActor()Returns the value of theaddedActorrecord component.- Returns:
- the value of the
addedActorrecord component
-
ordinaryActorMove
public boolean ordinaryActorMove()Returns the value of theordinaryActorMoverecord component.- Returns:
- the value of the
ordinaryActorMoverecord component
-
afterRideClearedInList
public boolean afterRideClearedInList()Returns the value of theafterRideClearedInListrecord component.- Returns:
- the value of the
afterRideClearedInListrecord component
-