Record Class RemotePlayerInterpolation.Step
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.movement.RemotePlayerInterpolation.Step
- Enclosing class:
RemotePlayerInterpolation
public static record RemotePlayerInterpolation.Step(net.raphimc.viabedrock.protocol.model.Position3f position, float pitch, float yaw, float previousPitch, float previousYaw, float headYaw, boolean clearMotion)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStep(net.raphimc.viabedrock.protocol.model.Position3f position, float pitch, float yaw, float previousPitch, float previousYaw, float headYaw, boolean clearMotion) Creates an instance of aSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theclearMotionrecord 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.floatpitch()Returns the value of thepitchrecord component.net.raphimc.viabedrock.protocol.model.Position3fposition()Returns the value of thepositionrecord component.floatReturns the value of thepreviousPitchrecord component.floatReturns the value of thepreviousYawrecord component.final StringtoString()Returns a string representation of this record class.floatyaw()Returns the value of theyawrecord component.
-
Constructor Details
-
Step
public Step(net.raphimc.viabedrock.protocol.model.Position3f position, float pitch, float yaw, float previousPitch, float previousYaw, float headYaw, boolean clearMotion) Creates an instance of aSteprecord class.- Parameters:
position- the value for thepositionrecord componentpitch- the value for thepitchrecord componentyaw- the value for theyawrecord componentpreviousPitch- the value for thepreviousPitchrecord componentpreviousYaw- the value for thepreviousYawrecord componentheadYaw- the value for theheadYawrecord componentclearMotion- the value for theclearMotionrecord 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. -
position
public net.raphimc.viabedrock.protocol.model.Position3f position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord 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
-
previousPitch
public float previousPitch()Returns the value of thepreviousPitchrecord component.- Returns:
- the value of the
previousPitchrecord component
-
previousYaw
public float previousYaw()Returns the value of thepreviousYawrecord component.- Returns:
- the value of the
previousYawrecord component
-
headYaw
public float headYaw()Returns the value of theheadYawrecord component.- Returns:
- the value of the
headYawrecord component
-
clearMotion
public boolean clearMotion()Returns the value of theclearMotionrecord component.- Returns:
- the value of the
clearMotionrecord component
-