Record Class BookModel.State
java.lang.Object
java.lang.Record
net.minecraft.client.model.object.book.BookModel.State
- Enclosing class:
BookModel
public static record BookModel.State(float openness, float pageFlip1, float pageFlip2)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionState(float openness, float pageFlip1, float pageFlip2) Creates an instance of aStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static BookModel.StateforAnimation(float progress, float pageFlip1, float pageFlip2, float openness) final inthashCode()Returns a hash code value for this object.floatopenness()Returns the value of theopennessrecord 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
-
openness
private final float opennessThe field for theopennessrecord component. -
pageFlip1
private final float pageFlip1The field for thepageFlip1record component. -
pageFlip2
private final float pageFlip2The field for thepageFlip2record component.
-
-
Constructor Details
-
State
public State(float openness, float pageFlip1, float pageFlip2) Creates an instance of aStaterecord class.- Parameters:
openness- the value for theopennessrecord componentpageFlip1- the value for thepageFlip1record componentpageFlip2- the value for thepageFlip2record component
-
-
Method Details
-
forAnimation
public static BookModel.State forAnimation(float progress, float pageFlip1, float pageFlip2, float openness) -
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. -
openness
public float openness()Returns the value of theopennessrecord component.- Returns:
- the value of the
opennessrecord 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
-