Record Class BookModel.BookModelState
java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.model.BookModel.BookModelState
- Record Components:
pageTurnAmount-leftFlipAmount-rightFlipAmount-pageTurnSpeed-
- Enclosing class:
BookModel
@Environment(CLIENT)
public static record BookModel.BookModelState(float pageTurnAmount, float leftFlipAmount, float rightFlipAmount, float pageTurnSpeed)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/entity/model/BookModel$BookModelStateintermediary net/minecraft/class_557$class_11650official gul$anamed pageTurnAmountintermediary comp_4756official anamed leftFlipAmountintermediary comp_4757official bnamed rightFlipAmountintermediary comp_4758official cnamed pageTurnSpeedintermediary comp_4759official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theleftFlipAmountrecord component.private final floatThe field for thepageTurnAmountrecord component.private final floatThe field for thepageTurnSpeedrecord component.private final floatThe field for therightFlipAmountrecord component. -
Constructor Summary
Constructors -
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.floatReturns the value of theleftFlipAmountrecord component.floatReturns the value of thepageTurnAmountrecord component.floatReturns the value of thepageTurnSpeedrecord component.floatReturns the value of therightFlipAmountrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pageTurnAmount
private final float pageTurnAmountThe field for thepageTurnAmountrecord component. -
leftFlipAmount
private final float leftFlipAmountThe field for theleftFlipAmountrecord component. -
rightFlipAmount
private final float rightFlipAmountThe field for therightFlipAmountrecord component. -
pageTurnSpeed
private final float pageTurnSpeedThe field for thepageTurnSpeedrecord component.
-
-
Constructor Details
-
BookModelState
public BookModelState(float float2, float float3, float float4, float float5)
-
-
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 '=='. -
pageTurnAmount
public float pageTurnAmount()Returns the value of thepageTurnAmountrecord component.- Returns:
- the value of the
pageTurnAmountrecord component
-
leftFlipAmount
public float leftFlipAmount()Returns the value of theleftFlipAmountrecord component.- Returns:
- the value of the
leftFlipAmountrecord component
-
rightFlipAmount
public float rightFlipAmount()Returns the value of therightFlipAmountrecord component.- Returns:
- the value of the
rightFlipAmountrecord component
-
pageTurnSpeed
public float pageTurnSpeed()Returns the value of thepageTurnSpeedrecord component.- Returns:
- the value of the
pageTurnSpeedrecord component
-