Contents
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
ConstructorsConstructorDescriptionTickSample(int tick, org.joml.Vector3d position, org.joml.Vector3d measuredVelocity, org.joml.Vector3d reportedVelocity, double distanceFromStart, double yDifferenceFromStart) Creates an instance of aTickSamplerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thedistanceFromStartrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.joml.Vector3dReturns the value of themeasuredVelocityrecord component.org.joml.Vector3dposition()Returns the value of thepositionrecord component.org.joml.Vector3dReturns the value of thereportedVelocityrecord component.inttick()Returns the value of thetickrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of theyDifferenceFromStartrecord component.
-
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 aTickSamplerecord class.- Parameters:
tick- the value for thetickrecord componentposition- the value for thepositionrecord componentmeasuredVelocity- the value for themeasuredVelocityrecord componentreportedVelocity- the value for thereportedVelocityrecord componentdistanceFromStart- the value for thedistanceFromStartrecord componentyDifferenceFromStart- the value for theyDifferenceFromStartrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
tick
public int tick()Returns the value of thetickrecord component.- Returns:
- the value of the
tickrecord component
-
position
@Nonnull public org.joml.Vector3d position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
measuredVelocity
@Nonnull public org.joml.Vector3d measuredVelocity()Returns the value of themeasuredVelocityrecord component.- Returns:
- the value of the
measuredVelocityrecord component
-
reportedVelocity
@Nonnull public org.joml.Vector3d reportedVelocity()Returns the value of thereportedVelocityrecord component.- Returns:
- the value of the
reportedVelocityrecord component
-
distanceFromStart
public double distanceFromStart()Returns the value of thedistanceFromStartrecord component.- Returns:
- the value of the
distanceFromStartrecord component
-
yDifferenceFromStart
public double yDifferenceFromStart()Returns the value of theyDifferenceFromStartrecord component.- Returns:
- the value of the
yDifferenceFromStartrecord component
-