Package net.minecraft.client.model
Record Class BookModel.State
java.lang.Object
java.lang.Record
net.minecraft.client.model.BookModel.State
- Enclosing class:
BookModel
public static record BookModel.State(float animationPos, float pageFlip1, float pageFlip2, float open)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theanimationPosrecord component.private final floatThe field for theopenrecord component.private final floatThe field for thepageFlip1record component.private final floatThe field for thepageFlip2record component. -
Constructor Summary
ConstructorsConstructorDescriptionState(float animationPos, float pageFlip1, float pageFlip2, float open) Creates an instance of aStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theanimationPosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatopen()Returns the value of theopenrecord component.floatReturns the value of thepageFlip1record component.floatReturns the value of thepageFlip2record component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
animationPos
private final float animationPosThe field for theanimationPosrecord component. -
pageFlip1
private final float pageFlip1The field for thepageFlip1record component. -
pageFlip2
private final float pageFlip2The field for thepageFlip2record component. -
open
private final float openThe field for theopenrecord component.
-
-
Constructor Details
-
State
public State(float animationPos, float pageFlip1, float pageFlip2, float open) Creates an instance of aStaterecord class.- Parameters:
animationPos- the value for theanimationPosrecord componentpageFlip1- the value for thepageFlip1record componentpageFlip2- the value for thepageFlip2record componentopen- the value for theopenrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
animationPos
public float animationPos()Returns the value of theanimationPosrecord component.- Returns:
- the value of the
animationPosrecord component
-
pageFlip1
public float pageFlip1()Returns the value of thepageFlip1record component.- Returns:
- the value of the
pageFlip1record component
-
pageFlip2
public float pageFlip2()Returns the value of thepageFlip2record component.- Returns:
- the value of the
pageFlip2record component
-
open
public float open()Returns the value of theopenrecord component.- Returns:
- the value of the
openrecord component
-