Package net.minecraft.recipe
Interface SmithingRecipe
- All Known Implementing Classes:
SmithingTransformRecipe
,SmithingTrimRecipe
- Mappings:
Namespace Name named net/minecraft/recipe/SmithingRecipe
intermediary net/minecraft/class_8059
official czn
-
Field Summary
Fields inherited from interface net.minecraft.recipe.Recipe
CODEC, PACKET_CODEC
-
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, getIngredients, getRemainder, getResult, 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 named getType
Lnet/minecraft/recipe/Recipe;getType()Lnet/minecraft/recipe/RecipeType;
intermediary method_17716
Lnet/minecraft/class_1860;method_17716()Lnet/minecraft/class_3956;
official e
Lcyx;e()Lczc;
-
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 named fits
Lnet/minecraft/recipe/Recipe;fits(II)Z
intermediary method_8113
Lnet/minecraft/class_1860;method_8113(II)Z
official a
Lcyx;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:
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 named createIcon
Lnet/minecraft/recipe/Recipe;createIcon()Lnet/minecraft/item/ItemStack;
intermediary method_17447
Lnet/minecraft/class_1860;method_17447()Lnet/minecraft/class_1799;
official g
Lcyx;g()Lcur;
-
testTemplate
- Mappings:
Namespace Name Mixin selector named testTemplate
Lnet/minecraft/recipe/SmithingRecipe;testTemplate(Lnet/minecraft/item/ItemStack;)Z
intermediary method_48453
Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/class_1799;)Z
official a
Lczn;a(Lcur;)Z
-
testBase
- Mappings:
Namespace Name Mixin selector named testBase
Lnet/minecraft/recipe/SmithingRecipe;testBase(Lnet/minecraft/item/ItemStack;)Z
intermediary method_48454
Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/class_1799;)Z
official b
Lczn;b(Lcur;)Z
-
testAddition
- Mappings:
Namespace Name Mixin selector named testAddition
Lnet/minecraft/recipe/SmithingRecipe;testAddition(Lnet/minecraft/item/ItemStack;)Z
intermediary method_30029
Lnet/minecraft/class_8059;method_30029(Lnet/minecraft/class_1799;)Z
official c
Lczn;c(Lcur;)Z
-