Record Class NativeUiPlayerCamera.Rotation
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiPlayerCamera.Rotation
- Enclosing class:
NativeUiPlayerCamera
public static record NativeUiPlayerCamera.Rotation(float pitch, float yaw, float bodyYaw, float previousBodyYaw, float headYaw, float previousHeadYaw)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRotation(float pitch, float yaw, float bodyYaw, float previousBodyYaw, float headYaw, float previousHeadYaw) Creates an instance of aRotationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatbodyYaw()Returns the value of thebodyYawrecord 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.floatReturns the value of thepreviousBodyYawrecord component.floatReturns the value of thepreviousHeadYawrecord component.final StringtoString()Returns a string representation of this record class.floatyaw()Returns the value of theyawrecord component.
-
Constructor Details
-
Rotation
public Rotation(float pitch, float yaw, float bodyYaw, float previousBodyYaw, float headYaw, float previousHeadYaw) Creates an instance of aRotationrecord class.- Parameters:
pitch- the value for thepitchrecord componentyaw- the value for theyawrecord componentbodyYaw- the value for thebodyYawrecord componentpreviousBodyYaw- the value for thepreviousBodyYawrecord componentheadYaw- the value for theheadYawrecord componentpreviousHeadYaw- the value for thepreviousHeadYawrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
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
-
bodyYaw
public float bodyYaw()Returns the value of thebodyYawrecord component.- Returns:
- the value of the
bodyYawrecord component
-
previousBodyYaw
public float previousBodyYaw()Returns the value of thepreviousBodyYawrecord component.- Returns:
- the value of the
previousBodyYawrecord component
-
headYaw
public float headYaw()Returns the value of theheadYawrecord component.- Returns:
- the value of the
headYawrecord component
-
previousHeadYaw
public float previousHeadYaw()Returns the value of thepreviousHeadYawrecord component.- Returns:
- the value of the
previousHeadYawrecord component
-