Record Class PanoramaRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.state.gui.PanoramaRenderState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thespinrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPanoramaRenderState(float spin) Creates an instance of aPanoramaRenderStaterecord 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.floatspin()Returns the value of thespinrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
spin
private final float spinThe field for thespinrecord component.
-
-
Constructor Details
-
PanoramaRenderState
public PanoramaRenderState(float spin) Creates an instance of aPanoramaRenderStaterecord class.- Parameters:
spin- the value for thespinrecord 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. -
spin
public float spin()Returns the value of thespinrecord component.- Returns:
- the value of the
spinrecord component
-