Record Class KnockbackTraceComponent.TickSample

java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.npcknockbackdebug.KnockbackTraceComponent.TickSample
Enclosing class:
KnockbackTraceComponent

public static record KnockbackTraceComponent.TickSample(int tick, @Nonnull org.joml.Vector3d position, @Nonnull org.joml.Vector3d measuredVelocity, @Nonnull org.joml.Vector3d reportedVelocity, double distanceFromStart, double yDifferenceFromStart) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    TickSample(int tick, org.joml.Vector3d position, org.joml.Vector3d measuredVelocity, org.joml.Vector3d reportedVelocity, double distanceFromStart, double yDifferenceFromStart)
    Creates an instance of a TickSample record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the distanceFromStart record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    org.joml.Vector3d
    Returns the value of the measuredVelocity record component.
    org.joml.Vector3d
    Returns the value of the position record component.
    org.joml.Vector3d
    Returns the value of the reportedVelocity record component.
    int
    Returns the value of the tick record component.
    final String
    Returns a string representation of this record class.
    double
    Returns the value of the yDifferenceFromStart record component.

    Methods inherited from class Object

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

    • TickSample

      public TickSample(int tick, @Nonnull org.joml.Vector3d position, @Nonnull org.joml.Vector3d measuredVelocity, @Nonnull org.joml.Vector3d reportedVelocity, double distanceFromStart, double yDifferenceFromStart)
      Creates an instance of a TickSample record class.
      Parameters:
      tick - the value for the tick record component
      position - the value for the position record component
      measuredVelocity - the value for the measuredVelocity record component
      reportedVelocity - the value for the reportedVelocity record component
      distanceFromStart - the value for the distanceFromStart record component
      yDifferenceFromStart - the value for the yDifferenceFromStart 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 the compare method from their corresponding wrapper classes.
      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.
    • tick

      public int tick()
      Returns the value of the tick record component.
      Returns:
      the value of the tick record component
    • position

      @Nonnull public org.joml.Vector3d position()
      Returns the value of the position record component.
      Returns:
      the value of the position record component
    • measuredVelocity

      @Nonnull public org.joml.Vector3d measuredVelocity()
      Returns the value of the measuredVelocity record component.
      Returns:
      the value of the measuredVelocity record component
    • reportedVelocity

      @Nonnull public org.joml.Vector3d reportedVelocity()
      Returns the value of the reportedVelocity record component.
      Returns:
      the value of the reportedVelocity record component
    • distanceFromStart

      public double distanceFromStart()
      Returns the value of the distanceFromStart record component.
      Returns:
      the value of the distanceFromStart record component
    • yDifferenceFromStart

      public double yDifferenceFromStart()
      Returns the value of the yDifferenceFromStart record component.
      Returns:
      the value of the yDifferenceFromStart record component