Record Class EntityInterpolateAck

java.lang.Object
java.lang.Record
ac.boar.anticheat.ack.types.EntityInterpolateAck
All Implemented Interfaces:
Acknowledgment

public record EntityInterpolateAck(long runtimeEntityId, Float posX, Float posY, Float posZ, Float pitch, Float yaw, Float headYaw, boolean lerp) extends Record implements Acknowledgment
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityInterpolateAck(long runtimeEntityId, Float posX, Float posY, Float posZ, Float pitch, Float yaw, Float headYaw, boolean lerp)
    Creates an instance of a EntityInterpolateAck record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the headYaw record component.
    boolean
    Returns the value of the lerp record component.
    Returns the value of the pitch record component.
    Returns the value of the posX record component.
    Returns the value of the posY record component.
    Returns the value of the posZ record component.
    long
    Returns the value of the runtimeEntityId record component.
    final String
    Returns a string representation of this record class.
    yaw()
    Returns the value of the yaw record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EntityInterpolateAck

      public EntityInterpolateAck(long runtimeEntityId, Float posX, Float posY, Float posZ, Float pitch, Float yaw, Float headYaw, boolean lerp)
      Creates an instance of a EntityInterpolateAck record class.
      Parameters:
      runtimeEntityId - the value for the runtimeEntityId record component
      posX - the value for the posX record component
      posY - the value for the posY record component
      posZ - the value for the posZ record component
      pitch - the value for the pitch record component
      yaw - the value for the yaw record component
      headYaw - the value for the headYaw record component
      lerp - the value for the lerp record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • runtimeEntityId

      public long runtimeEntityId()
      Returns the value of the runtimeEntityId record component.
      Returns:
      the value of the runtimeEntityId record component
    • posX

      public Float posX()
      Returns the value of the posX record component.
      Returns:
      the value of the posX record component
    • posY

      public Float posY()
      Returns the value of the posY record component.
      Returns:
      the value of the posY record component
    • posZ

      public Float posZ()
      Returns the value of the posZ record component.
      Returns:
      the value of the posZ record component
    • pitch

      public Float pitch()
      Returns the value of the pitch record component.
      Returns:
      the value of the pitch record component
    • yaw

      public Float yaw()
      Returns the value of the yaw record component.
      Returns:
      the value of the yaw record component
    • headYaw

      public Float headYaw()
      Returns the value of the headYaw record component.
      Returns:
      the value of the headYaw record component
    • lerp

      public boolean lerp()
      Returns the value of the lerp record component.
      Returns:
      the value of the lerp record component