Record Class BellModel.State
java.lang.Object
java.lang.Record
net.minecraft.client.model.object.bell.BellModel.State
- Enclosing class:
BellModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theshakeDirectionrecord component.private final floatThe field for theticksrecord 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.Returns the value of theshakeDirectionrecord component.floatticks()Returns the value of theticksrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ticks
private final float ticksThe field for theticksrecord component. -
shakeDirection
-
-
Constructor Details
-
State
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
ticks
public float ticks()Returns the value of theticksrecord component.- Returns:
- the value of the
ticksrecord component
-
shakeDirection
-