Record Class BedrockPlayerSkins.FirstPersonProjection
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.BedrockPlayerSkins.FirstPersonProjection
- Enclosing class:
BedrockPlayerSkins
public static record BedrockPlayerSkins.FirstPersonProjection(float nearPlane, float fieldOfView)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFirstPersonProjection(float nearPlane, float fieldOfView) Creates an instance of aFirstPersonProjectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.floatReturns the value of thefieldOfViewrecord component.final inthashCode()Returns a hash code value for this object.floatReturns the value of thenearPlanerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FirstPersonProjection
public FirstPersonProjection(float nearPlane, float fieldOfView) Creates an instance of aFirstPersonProjectionrecord class.- Parameters:
nearPlane- the value for thenearPlanerecord componentfieldOfView- the value for thefieldOfViewrecord 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. -
nearPlane
public float nearPlane()Returns the value of thenearPlanerecord component.- Returns:
- the value of the
nearPlanerecord component
-
fieldOfView
public float fieldOfView()Returns the value of thefieldOfViewrecord component.- Returns:
- the value of the
fieldOfViewrecord component
-