Record Class EnderChestModel.State
java.lang.Object
java.lang.Record
codechicken.enderstorage.client.model.EnderChestModel.State
- Enclosing class:
EnderChestModel
-
Constructor Summary
ConstructorsConstructorDescriptionState(float lidAngle, boolean owned) Creates an instance of aStaterecord class. -
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.floatlidAngle()Returns the value of thelidAnglerecord component.booleanowned()Returns the value of theownedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
State
public State(float lidAngle, boolean owned) Creates an instance of aStaterecord class.- Parameters:
lidAngle- the value for thelidAnglerecord componentowned- the value for theownedrecord 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 '=='. -
lidAngle
public float lidAngle()Returns the value of thelidAnglerecord component.- Returns:
- the value of the
lidAnglerecord component
-
owned
public boolean owned()Returns the value of theownedrecord component.- Returns:
- the value of the
ownedrecord component
-