Package com.simibubi.create
Record Class AllPartialModels.GantryShaftKey
java.lang.Object
java.lang.Record
com.simibubi.create.AllPartialModels.GantryShaftKey
- Enclosing class:
AllPartialModels
public static record AllPartialModels.GantryShaftKey(GantryShaftBlock.Part part, boolean powered, boolean flipped)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGantryShaftKey(GantryShaftBlock.Part part, boolean powered, boolean flipped) Creates an instance of aGantryShaftKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanflipped()Returns the value of theflippedrecord component.final inthashCode()Returns a hash code value for this object.part()Returns the value of thepartrecord component.booleanpowered()Returns the value of thepoweredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GantryShaftKey
Creates an instance of aGantryShaftKeyrecord class.- Parameters:
part- the value for thepartrecord componentpowered- the value for thepoweredrecord componentflipped- the value for theflippedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
part
Returns the value of thepartrecord component.- Returns:
- the value of the
partrecord component
-
powered
public boolean powered()Returns the value of thepoweredrecord component.- Returns:
- the value of the
poweredrecord component
-
flipped
public boolean flipped()Returns the value of theflippedrecord component.- Returns:
- the value of the
flippedrecord component
-