Record Class CookieCuttingRecipe.Input
java.lang.Object
java.lang.Record
com.petrolpark.compat.create.core.dough.cookieCutter.CookieCuttingRecipe.Input
- All Implemented Interfaces:
net.minecraft.world.item.crafting.RecipeInput
- Enclosing class:
CookieCuttingRecipe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackcutter()Returns the value of thecutterrecord component.dough()Returns the value of thedoughrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.world.item.ItemStackgetItem(int index) final inthashCode()Returns a hash code value for this object.intsize()final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.item.crafting.RecipeInput
isEmpty
-
Constructor Details
-
Input
Creates an instance of aInputrecord class.- Parameters:
dough- the value for thedoughrecord componentcutter- the value for thecutterrecord component
-
-
Method Details
-
getItem
public net.minecraft.world.item.ItemStack getItem(int index) - Specified by:
getItemin interfacenet.minecraft.world.item.crafting.RecipeInput
-
size
public int size()- Specified by:
sizein interfacenet.minecraft.world.item.crafting.RecipeInput
-
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 withObjects::equals(Object,Object). -
dough
Returns the value of thedoughrecord component.- Returns:
- the value of the
doughrecord component
-
cutter
public net.minecraft.world.item.ItemStack cutter()Returns the value of thecutterrecord component.- Returns:
- the value of the
cutterrecord component
-