Package com.wdiscute.artisan.compat.jei
Record Class ArtisanJeiMachineRecipe.Recipe
java.lang.Object
java.lang.Record
com.wdiscute.artisan.compat.jei.ArtisanJeiMachineRecipe.Recipe
- Enclosing class:
ArtisanJeiMachineRecipe
-
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.input()Returns the value of theinputrecord component.of(net.minecraft.world.item.crafting.RecipeHolder<AbstractArtisanRecipe> holder) output()Returns the value of theoutputrecord component.intReturns the value of theprocessingrecord component.List<net.minecraft.world.item.crafting.Ingredient> Returns the value of therequiredUpgradesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Recipe
public Recipe(int processing, List<List<net.minecraft.world.item.ItemStack>> input, List<ChancedStack> output, List<net.minecraft.world.item.crafting.Ingredient> requiredUpgrades) Creates an instance of aReciperecord class.- Parameters:
processing- the value for theprocessingrecord componentinput- the value for theinputrecord componentoutput- the value for theoutputrecord componentrequiredUpgrades- the value for therequiredUpgradesrecord component
-
-
Method Details
-
of
public static ArtisanJeiMachineRecipe.Recipe of(net.minecraft.world.item.crafting.RecipeHolder<AbstractArtisanRecipe> holder) -
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 '=='. -
processing
public int processing()Returns the value of theprocessingrecord component.- Returns:
- the value of the
processingrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
requiredUpgrades
Returns the value of therequiredUpgradesrecord component.- Returns:
- the value of the
requiredUpgradesrecord component
-