Package net.minecraft.recipe
Interface SmithingRecipe
- All Known Implementing Classes:
LegacySmithingRecipe
,SmithingTransformRecipe
,SmithingTrimRecipe
- Mappings:
Namespace Name official cjl
intermediary net/minecraft/class_8059
named net/minecraft/recipe/SmithingRecipe
-
Method Summary
Modifier and TypeMethodDescriptiondefault ItemStack
Returns an item rendered on the top left of the output preview on the recipe toast when a new recipe is unlocked.default boolean
fits
(int width, int height) Returns whether this recipe will fit into the given grid size.default RecipeType<?>
getType()
Returns the type of this recipe.boolean
testAddition
(ItemStack stack) boolean
boolean
testTemplate
(ItemStack stack) Methods inherited from interface net.minecraft.recipe.Recipe
craft, getGroup, getId, getIngredients, getOutput, getRemainder, getSerializer, isEmpty, isIgnoredInRecipeBook, matches, showNotification
-
Method Details
-
getType
Returns the type of this recipe.The
type
in the recipe JSON format is the serializer instead.- Specified by:
getType
in interfaceRecipe<Inventory>
- Returns:
- the type of this recipe
- Mappings:
Namespace Name Mixin selector official f
Lciy;f()Lcjb;
intermediary method_17716
Lnet/minecraft/class_1860;method_17716()Lnet/minecraft/class_3956;
named getType
Lnet/minecraft/recipe/Recipe;getType()Lnet/minecraft/recipe/RecipeType;
-
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:
fits
in interfaceRecipe<Inventory>
- 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 official a
Lciy;a(II)Z
intermediary method_8113
Lnet/minecraft/class_1860;method_8113(II)Z
named fits
Lnet/minecraft/recipe/Recipe;fits(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:
createIcon
in interfaceRecipe<Inventory>
- 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 official h
Lciy;h()Lcfv;
intermediary method_17447
Lnet/minecraft/class_1860;method_17447()Lnet/minecraft/class_1799;
named createIcon
Lnet/minecraft/recipe/Recipe;createIcon()Lnet/minecraft/item/ItemStack;
-
testTemplate
- Mappings:
Namespace Name Mixin selector official a
Lcjl;a(Lcfv;)Z
intermediary method_48453
Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/class_1799;)Z
named testTemplate
Lnet/minecraft/recipe/SmithingRecipe;testTemplate(Lnet/minecraft/item/ItemStack;)Z
-
testBase
- Mappings:
Namespace Name Mixin selector official b
Lcjl;b(Lcfv;)Z
intermediary method_48454
Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/class_1799;)Z
named testBase
Lnet/minecraft/recipe/SmithingRecipe;testBase(Lnet/minecraft/item/ItemStack;)Z
-
testAddition
- Mappings:
Namespace Name Mixin selector official c
Lcjl;c(Lcfv;)Z
intermediary method_30029
Lnet/minecraft/class_8059;method_30029(Lnet/minecraft/class_1799;)Z
named testAddition
Lnet/minecraft/recipe/SmithingRecipe;testAddition(Lnet/minecraft/item/ItemStack;)Z
-