Record Class NativeUiActorCamera
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiActorCamera
public record NativeUiActorCamera(float scale, org.joml.Vector3f translation, org.joml.Matrix4f modelTransform)
extends Record
Actor portrait transform, distinct from the native live player renderer.
-
Constructor Summary
ConstructorsConstructorDescriptionNativeUiActorCamera(float scale, org.joml.Vector3f translation, org.joml.Matrix4f modelTransform) Creates an instance of aNativeUiActorCamerarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.joml.Matrix4fReturns the value of themodelTransformrecord component.static NativeUiActorCameraresolve(NativeUiLayout.Rect control, NativeUiLayout.Rect viewport, float layer, float width, float height, float depth, int guiScale, com.google.gson.JsonObject properties, com.google.gson.JsonObject offsets, float automaticRotation) 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.
-
Constructor Details
-
NativeUiActorCamera
public NativeUiActorCamera(float scale, org.joml.Vector3f translation, org.joml.Matrix4f modelTransform) Creates an instance of aNativeUiActorCamerarecord class.- Parameters:
scale- the value for thescalerecord componenttranslation- the value for thetranslationrecord componentmodelTransform- the value for themodelTransformrecord component
-
-
Method Details
-
resolve
public static NativeUiActorCamera resolve(NativeUiLayout.Rect control, NativeUiLayout.Rect viewport, float layer, float width, float height, float depth, int guiScale, com.google.gson.JsonObject properties, com.google.gson.JsonObject offsets, float automaticRotation) -
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
-