Package com.wdiscute.starcatcher.recipe
Record Class TackleSkinSmithingRecipe
java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.recipe.TackleSkinSmithingRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>,net.minecraft.world.item.crafting.SmithingRecipe
public record TackleSkinSmithingRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient base, net.minecraft.world.item.crafting.Ingredient addition)
extends Record
implements net.minecraft.world.item.crafting.SmithingRecipe
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface net.minecraft.world.item.crafting.Recipe
CODEC, CONDITIONAL_CODEC, STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionTackleSkinSmithingRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient base, net.minecraft.world.item.crafting.Ingredient addition) Creates an instance of aTackleSkinSmithingReciperecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.crafting.Ingredientaddition()Returns the value of theadditionrecord component.net.minecraft.world.item.ItemStackassemble(net.minecraft.world.item.crafting.SmithingRecipeInput input, net.minecraft.core.HolderLookup.Provider registries) net.minecraft.world.item.crafting.Ingredientbase()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.world.item.ItemStackgetResultItem(net.minecraft.core.HolderLookup.Provider registries) net.minecraft.world.item.crafting.RecipeSerializer<?> net.minecraft.world.item.crafting.RecipeType<?> getType()final inthashCode()Returns a hash code value for this object.booleanisAdditionIngredient(net.minecraft.world.item.ItemStack stack) booleanisBaseIngredient(net.minecraft.world.item.ItemStack stack) booleanbooleanisTemplateIngredient(net.minecraft.world.item.ItemStack stack) booleanmatches(net.minecraft.world.item.crafting.SmithingRecipeInput input, net.minecraft.world.level.Level level) net.minecraft.world.item.crafting.Ingredienttemplate()Returns the value of thetemplaterecord component.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.Recipe
getGroup, getIngredients, getRemainingItems, isSpecial, showNotificationMethods inherited from interface net.minecraft.world.item.crafting.SmithingRecipe
canCraftInDimensions, getToastSymbol
-
Constructor Details
-
TackleSkinSmithingRecipe
public TackleSkinSmithingRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient base, net.minecraft.world.item.crafting.Ingredient addition) Creates an instance of aTackleSkinSmithingReciperecord class.- Parameters:
template- the value for thetemplaterecord componentbase- the value for thebaserecord componentaddition- the value for theadditionrecord component
-
-
Method Details
-
matches
public boolean matches(net.minecraft.world.item.crafting.SmithingRecipeInput input, net.minecraft.world.level.Level level) - Specified by:
matchesin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>
-
assemble
public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.item.crafting.SmithingRecipeInput input, net.minecraft.core.HolderLookup.Provider registries) - Specified by:
assemblein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>
-
isTemplateIngredient
public boolean isTemplateIngredient(net.minecraft.world.item.ItemStack stack) - Specified by:
isTemplateIngredientin interfacenet.minecraft.world.item.crafting.SmithingRecipe
-
isBaseIngredient
public boolean isBaseIngredient(net.minecraft.world.item.ItemStack stack) - Specified by:
isBaseIngredientin interfacenet.minecraft.world.item.crafting.SmithingRecipe
-
isAdditionIngredient
public boolean isAdditionIngredient(net.minecraft.world.item.ItemStack stack) - Specified by:
isAdditionIngredientin interfacenet.minecraft.world.item.crafting.SmithingRecipe
-
getResultItem
public net.minecraft.world.item.ItemStack getResultItem(net.minecraft.core.HolderLookup.Provider registries) - Specified by:
getResultItemin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>
-
getSerializer
public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()- Specified by:
getSerializerin interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>
-
getType
public net.minecraft.world.item.crafting.RecipeType<?> getType()- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>- Specified by:
getTypein interfacenet.minecraft.world.item.crafting.SmithingRecipe
-
isIncomplete
public boolean isIncomplete()- Specified by:
isIncompletein interfacenet.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>
-
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
-
base
public net.minecraft.world.item.crafting.Ingredient base()Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
addition
public net.minecraft.world.item.crafting.Ingredient addition()Returns the value of theadditionrecord component.- Returns:
- the value of the
additionrecord component
-