Record Class PressureChamberRecipe.RecipeSlot
java.lang.Object
java.lang.Record
me.desht.pneumaticcraft.api.crafting.recipe.PressureChamberRecipe.RecipeSlot
- Record Components:
input- true iff this is an input slotindex- index of the slot in the recipe
- Enclosing class:
- PressureChamberRecipe
Data object for type of slot and the index of the slot.
-
Constructor Summary
ConstructorsConstructorDescriptionRecipeSlot(boolean input, int index) Creates an instance of aRecipeSlotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.booleaninput()Returns the value of theinputrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
input
public boolean input()Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-