Record Class BookSpecialRenderer.Unbaked
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.special.BookSpecialRenderer.Unbaked
- All Implemented Interfaces:
NoDataSpecialModelRenderer.Unbaked, SpecialModelRenderer.Unbaked<Void>
- Enclosing class:
BookSpecialRenderer
public static record BookSpecialRenderer.Unbaked(float openAngle, float page1, float page2)
extends Record
implements NoDataSpecialModelRenderer.Unbaked
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MapCodec<BookSpecialRenderer.Unbaked> private final floatThe field for theopenAnglerecord component.private final floatThe field for thepage1record component.private final floatThe field for thepage2record component. -
Constructor Summary
ConstructorsConstructorDescriptionUnbaked(float openAngle, float page1, float page2) Creates an instance of aUnbakedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbake(SpecialModelRenderer.BakingContext context) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of theopenAnglerecord component.floatpage1()Returns the value of thepage1record component.floatpage2()Returns the value of thepage2record component.final StringtoString()Returns a string representation of this record class.type()
-
Field Details
-
openAngle
private final float openAngleThe field for theopenAnglerecord component. -
page1
private final float page1The field for thepage1record component. -
page2
private final float page2The field for thepage2record component. -
MAP_CODEC
-
-
Constructor Details
-
Unbaked
public Unbaked(float openAngle, float page1, float page2) Creates an instance of aUnbakedrecord class.- Parameters:
openAngle- the value for theopenAnglerecord componentpage1- the value for thepage1record componentpage2- the value for thepage2record component
-
-
Method Details
-
type
- Specified by:
typein interfaceNoDataSpecialModelRenderer.Unbaked- Specified by:
typein interfaceSpecialModelRenderer.Unbaked<Void>
-
bake
- Specified by:
bakein interfaceSpecialModelRenderer.Unbaked<Void>
-
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. -
openAngle
public float openAngle()Returns the value of theopenAnglerecord component.- Returns:
- the value of the
openAnglerecord component
-
page1
public float page1()Returns the value of thepage1record component.- Returns:
- the value of the
page1record component
-
page2
public float page2()Returns the value of thepage2record component.- Returns:
- the value of the
page2record component
-