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 dal
-
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.default booleanmatches(SmithingRecipeInput smithingRecipeInput, World world) Returns whether this recipe matches the contents inside theinventoryin the givenworld.booleantestAddition(ItemStack stack) booleanbooleantestTemplate(ItemStack stack) Methods inherited from interface net.minecraft.recipe.Recipe
craft, getGroup, getRemainder, getResult, getSerializer, isIgnoredInRecipeBook, method_61671, 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 eLczt;e()Lczz;
-
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 aLczt;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 gLczt;g()Lcvl;
-
matches
Description copied from interface:RecipeReturns whether this recipe matches the contents inside theinventoryin the givenworld.The
worldcurrently is only used by the map cloning recipe to prevent duplication of explorer maps.- Specified by:
matchesin interfaceRecipe<SmithingRecipeInput>- Parameters:
world- the input world- Returns:
- whether this recipe matches the contents inside the
inventoryin the givenworld - Mappings:
Namespace Name Mixin selector named matchesLnet/minecraft/recipe/SmithingRecipe;matches(Lnet/minecraft/recipe/input/SmithingRecipeInput;Lnet/minecraft/world/World;)Zintermediary method_61702Lnet/minecraft/class_8059;method_61702(Lnet/minecraft/class_9697;Lnet/minecraft/class_1937;)Zofficial aLdal;a(Ldam;Ldds;)Z
-
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 aLdal;a(Lcvl;)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 bLdal;b(Lcvl;)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 cLdal;c(Lcvl;)Z
-