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 TypeFieldDescriptionprivate final @Nullable DirectionThe 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.@Nullable DirectionReturns 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
The field for theshakeDirectionrecord component.
-
-
Constructor Details
-
State
Creates an instance of aStaterecord class.- Parameters:
ticks- the value for theticksrecord componentshakeDirection- the value for theshakeDirectionrecord component
-
-
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
Returns the value of theshakeDirectionrecord component.- Returns:
- the value of the
shakeDirectionrecord component
-