Record Class StarcatcherJeiSmithingRecipe.Recipe
java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.compat.jei.StarcatcherJeiSmithingRecipe.Recipe
- Enclosing class:
- StarcatcherJeiSmithingRecipe
public static record StarcatcherJeiSmithingRecipe.Recipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient material, net.minecraft.world.item.ItemStack result)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final mezz.jei.api.recipe.RecipeType<StarcatcherJeiSmithingRecipe.Recipe> -
Constructor Summary
ConstructorsConstructorDescriptionRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient material, net.minecraft.world.item.ItemStack result) Creates an instance of aReciperecord class. -
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.net.minecraft.world.item.crafting.Ingredientmaterial()Returns the value of thematerialrecord component.of(FishingRodSkinSmithingRecipe recipe) of(NetheriteUpgradeSmithingRecipe recipe) of(TackleSkinSmithingRecipe recipe) net.minecraft.world.item.ItemStackresult()Returns the value of theresultrecord component.net.minecraft.world.item.crafting.Ingredienttemplate()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
-
-
Constructor Details
-
Recipe
public Recipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient material, net.minecraft.world.item.ItemStack result) Creates an instance of aReciperecord class.- Parameters:
template- the value for thetemplaterecord componentmaterial- the value for thematerialrecord componentresult- the value for theresultrecord component
-
-
Method Details
-
of
-
of
-
of
-
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). -
template
public net.minecraft.world.item.crafting.Ingredient template()Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
material
public net.minecraft.world.item.crafting.Ingredient material()Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-
result
public net.minecraft.world.item.ItemStack result()Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-