Package com.hbm_m.recipe
Record Class CyclotronRecipes.JeiRecipe
java.lang.Object
java.lang.Record
com.hbm_m.recipe.CyclotronRecipes.JeiRecipe
- Enclosing class:
- CyclotronRecipes
public static record CyclotronRecipes.JeiRecipe(net.minecraft.world.item.crafting.Ingredient target, net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack output, int amatProduced)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionJeiRecipe(net.minecraft.world.item.crafting.Ingredient target, net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack output, int amatProduced) Creates an instance of aJeiReciperecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theamatProducedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.item.crafting.Ingredientinput()Returns the value of theinputrecord component.net.minecraft.world.item.ItemStackoutput()Returns the value of theoutputrecord component.net.minecraft.world.item.crafting.Ingredienttarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JeiRecipe
public JeiRecipe(net.minecraft.world.item.crafting.Ingredient target, net.minecraft.world.item.crafting.Ingredient input, net.minecraft.world.item.ItemStack output, int amatProduced) Creates an instance of aJeiReciperecord class.- Parameters:
target- the value for thetargetrecord componentinput- the value for theinputrecord componentoutput- the value for theoutputrecord componentamatProduced- the value for theamatProducedrecord 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 '=='. -
target
public net.minecraft.world.item.crafting.Ingredient target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
input
public net.minecraft.world.item.crafting.Ingredient input()Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
output
public net.minecraft.world.item.ItemStack output()Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
amatProduced
public int amatProduced()Returns the value of theamatProducedrecord component.- Returns:
- the value of the
amatProducedrecord component
-