Package net.minecraft.recipe
Interface SmithingRecipe
- All Superinterfaces:
Recipe<SmithingRecipeInput>
- All Known Implementing Classes:
SmithingTransformRecipe,SmithingTrimRecipe
- Mappings:
Namespace Name named net/minecraft/recipe/SmithingRecipeintermediary net/minecraft/class_8059official czr
-
Field Summary
Fields inherited from interface net.minecraft.recipe.Recipe
CODEC, PACKET_CODEC -
Method Summary
Modifier and TypeMethodDescriptiondefault ItemStackReturns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.default booleanfits(int width, int height) Returns whether this recipe will fit into the given grid size.default RecipeType<?> getType()Returns the type of this recipe.booleantestAddition(ItemStack stack) booleanbooleantestTemplate(ItemStack stack) Methods inherited from interface net.minecraft.recipe.Recipe
craft, getGroup, getIngredients, getRemainder, getResult, getSerializer, isEmpty, isIgnoredInRecipeBook, matches, showNotification
-
Method Details
-
getType
Returns the type of this recipe.The
typein the recipe JSON format is the serializer instead.- Specified by:
getTypein interfaceRecipe<SmithingRecipeInput>- Returns:
- the type of this recipe
- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/recipe/Recipe;getType()Lnet/minecraft/recipe/RecipeType;intermediary method_17716Lnet/minecraft/class_1860;method_17716()Lnet/minecraft/class_3956;official eLcyz;e()Lczf;
-
fits
default boolean fits(int width, int height) Returns whether this recipe will fit into the given grid size.This is currently only used by recipe book.
- Specified by:
fitsin interfaceRecipe<SmithingRecipeInput>- Parameters:
width- the width of the input inventoryheight- the height of the input inventory- Returns:
- whether this recipe will fit into the given grid size
- Mappings:
Namespace Name Mixin selector named fitsLnet/minecraft/recipe/Recipe;fits(II)Zintermediary method_8113Lnet/minecraft/class_1860;method_8113(II)Zofficial aLcyz;a(II)Z
-
createIcon
Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked. This can be interpreted as a catalyst for the recipe.- Specified by:
createIconin interfaceRecipe<SmithingRecipeInput>- Returns:
- an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked
- Mappings:
Namespace Name Mixin selector named createIconLnet/minecraft/recipe/Recipe;createIcon()Lnet/minecraft/item/ItemStack;intermediary method_17447Lnet/minecraft/class_1860;method_17447()Lnet/minecraft/class_1799;official gLcyz;g()Lcuq;
-
testTemplate
- Mappings:
Namespace Name Mixin selector named testTemplateLnet/minecraft/recipe/SmithingRecipe;testTemplate(Lnet/minecraft/item/ItemStack;)Zintermediary method_48453Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/class_1799;)Zofficial aLczr;a(Lcuq;)Z
-
testBase
- Mappings:
Namespace Name Mixin selector named testBaseLnet/minecraft/recipe/SmithingRecipe;testBase(Lnet/minecraft/item/ItemStack;)Zintermediary method_48454Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/class_1799;)Zofficial bLczr;b(Lcuq;)Z
-
testAddition
- Mappings:
Namespace Name Mixin selector named testAdditionLnet/minecraft/recipe/SmithingRecipe;testAddition(Lnet/minecraft/item/ItemStack;)Zintermediary method_30029Lnet/minecraft/class_8059;method_30029(Lnet/minecraft/class_1799;)Zofficial cLczr;c(Lcuq;)Z
-