Record Class SignRenderState.SignTransformations
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.blockentity.state.SignRenderState.SignTransformations
- Enclosing class:
SignRenderState
public static record SignRenderState.SignTransformations(Transformation body, Transformation frontText, Transformation backText)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TransformationThe field for thebackTextrecord component.private final TransformationThe field for thebodyrecord component.private final TransformationThe field for thefrontTextrecord component.static final SignRenderState.SignTransformations -
Constructor Summary
ConstructorsConstructorDescriptionSignTransformations(Transformation body, Transformation frontText, Transformation backText) Creates an instance of aSignTransformationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbackText()Returns the value of thebackTextrecord component.body()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefrontTextrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
body
The field for thebodyrecord component. -
frontText
The field for thefrontTextrecord component. -
backText
The field for thebackTextrecord component. -
IDENTITY
-
-
Constructor Details
-
SignTransformations
Creates an instance of aSignTransformationsrecord class.- Parameters:
body- the value for thebodyrecord componentfrontText- the value for thefrontTextrecord componentbackText- the value for thebackTextrecord 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 withObjects::equals(Object,Object). -
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
frontText
Returns the value of thefrontTextrecord component.- Returns:
- the value of the
frontTextrecord component
-
backText
Returns the value of thebackTextrecord component.- Returns:
- the value of the
backTextrecord component
-