Package com.wdiscute.starcatcher.recipe
Record Class StarcatcherRodRecipe
java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.recipe.StarcatcherRodRecipe
- All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.SmithingRecipeInput>,net.minecraft.world.item.crafting.SmithingRecipe
public record StarcatcherRodRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient rod, net.minecraft.world.item.crafting.Ingredient material, net.minecraft.world.item.ItemStack result, boolean addText, boolean keepStack, boolean applySkin)
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
ConstructorsConstructorDescriptionStarcatcherRodRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient rod, net.minecraft.world.item.crafting.Ingredient material, net.minecraft.world.item.ItemStack result, boolean addText, boolean keepStack, boolean applySkin) Creates an instance of aStarcatcherRodReciperecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddText()Returns the value of theaddTextrecord component.booleanReturns the value of theapplySkinrecord component.net.minecraft.world.item.ItemStackassemble(net.minecraft.world.item.crafting.SmithingRecipeInput input, net.minecraft.core.HolderLookup.Provider registries) net.minecraft.world.item.ItemStackassembledwad(net.minecraft.world.item.crafting.SmithingRecipeInput input) 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) booleanReturns the value of thekeepStackrecord component.booleanmatches(net.minecraft.world.item.crafting.SmithingRecipeInput input, net.minecraft.world.level.Level level) net.minecraft.world.item.crafting.Ingredientmaterial()Returns the value of thematerialrecord component.net.minecraft.world.item.ItemStackresult()Returns the value of theresultrecord component.net.minecraft.world.item.crafting.Ingredientrod()Returns the value of therodrecord component.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
-
StarcatcherRodRecipe
public StarcatcherRodRecipe(net.minecraft.world.item.crafting.Ingredient template, net.minecraft.world.item.crafting.Ingredient rod, net.minecraft.world.item.crafting.Ingredient material, net.minecraft.world.item.ItemStack result, boolean addText, boolean keepStack, boolean applySkin) Creates an instance of aStarcatcherRodReciperecord class.- Parameters:
template- the value for thetemplaterecord componentrod- the value for therodrecord componentmaterial- the value for thematerialrecord componentresult- the value for theresultrecord componentaddText- the value for theaddTextrecord componentkeepStack- the value for thekeepStackrecord componentapplySkin- the value for theapplySkinrecord 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>
-
assembledwad
public net.minecraft.world.item.ItemStack assembledwad(net.minecraft.world.item.crafting.SmithingRecipeInput input) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
template
public net.minecraft.world.item.crafting.Ingredient template()Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
rod
public net.minecraft.world.item.crafting.Ingredient rod()Returns the value of therodrecord component.- Returns:
- the value of the
rodrecord 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
-
addText
public boolean addText()Returns the value of theaddTextrecord component.- Returns:
- the value of the
addTextrecord component
-
keepStack
public boolean keepStack()Returns the value of thekeepStackrecord component.- Returns:
- the value of the
keepStackrecord component
-
applySkin
public boolean applySkin()Returns the value of theapplySkinrecord component.- Returns:
- the value of the
applySkinrecord component
-