Record Class NativeUiPlayerCamera
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiPlayerCamera
public record NativeUiPlayerCamera(float scale, org.joml.Vector3f translation, org.joml.Matrix4f modelTransform, float pitch, float yaw, float bodyYaw, float headYaw)
extends Record
Local player framing and independent actor, body and head rotations from the native draw.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordLogical cursor position, after the current input source supplied its admission and coordinates.static final record -
Constructor Summary
ConstructorsConstructorDescriptionNativeUiPlayerCamera(float scale, org.joml.Vector3f translation, org.joml.Matrix4f modelTransform, float pitch, float yaw, float bodyYaw, float headYaw) Creates an instance of aNativeUiPlayerCamerarecord 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.org.joml.Matrix4fReturns the value of themodelTransformrecord component.floatpitch()Returns the value of thepitchrecord component.static NativeUiPlayerCameraresolve(NativeUiLayout.Rect control, NativeUiLayout.Rect viewport, float layer, com.google.gson.JsonObject properties, NativeUiPlayerCamera.Cursor cursor, NativeUiPlayerCamera.Rotation rotation, boolean gliding, boolean swimming, boolean crawling) floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.org.joml.Vector3fReturns the value of thetranslationrecord component.org.joml.Vector3ftranslation(float playerScale) floatyaw()Returns the value of theyawrecord component.
-
Constructor Details
-
NativeUiPlayerCamera
public NativeUiPlayerCamera(float scale, org.joml.Vector3f translation, org.joml.Matrix4f modelTransform, float pitch, float yaw, float bodyYaw, float headYaw) Creates an instance of aNativeUiPlayerCamerarecord class.- Parameters:
scale- the value for thescalerecord componenttranslation- the value for thetranslationrecord componentmodelTransform- the value for themodelTransformrecord componentpitch- the value for thepitchrecord componentyaw- the value for theyawrecord componentbodyYaw- the value for thebodyYawrecord componentheadYaw- the value for theheadYawrecord component
-
-
Method Details
-
resolve
public static NativeUiPlayerCamera resolve(NativeUiLayout.Rect control, NativeUiLayout.Rect viewport, float layer, com.google.gson.JsonObject properties, NativeUiPlayerCamera.Cursor cursor, NativeUiPlayerCamera.Rotation rotation, boolean gliding, boolean swimming, boolean crawling) -
translation
public org.joml.Vector3f translation(float playerScale) -
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. -
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
translation
public org.joml.Vector3f translation()Returns the value of thetranslationrecord component.- Returns:
- the value of the
translationrecord component
-
modelTransform
public org.joml.Matrix4f modelTransform()Returns the value of themodelTransformrecord component.- Returns:
- the value of the
modelTransformrecord 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
-
bodyYaw
public float bodyYaw()Returns the value of thebodyYawrecord component.- Returns:
- the value of the
bodyYawrecord component
-
headYaw
public float headYaw()Returns the value of theheadYawrecord component.- Returns:
- the value of the
headYawrecord component
-