Record Class NativeUiActorPortraits.Camera
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.ui.NativeUiActorPortraits.Camera
- Enclosing class:
NativeUiActorPortraits
public static record NativeUiActorPortraits.Camera(float pitch, float yaw, float scale)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCamera(float pitch, float yaw, float scale) Creates an instance of aCamerarecord 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.floatpitch()Returns the value of thepitchrecord component.floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.floatyaw()Returns the value of theyawrecord component.
-
Constructor Details
-
Camera
public Camera(float pitch, float yaw, float scale) Creates an instance of aCamerarecord class.- Parameters:
pitch- the value for thepitchrecord componentyaw- the value for theyawrecord componentscale- the value for thescalerecord 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
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-