Package net.minecraft.recipe
Interface SmithingRecipe
- All Known Implementing Classes:
SmithingTransformRecipe,SmithingTrimRecipe
- Mappings:
Namespace Name official cjnintermediary net/minecraft/class_8059named net/minecraft/recipe/SmithingRecipe
-
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, getId, getIngredients, getOutput, getRemainder, 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<Inventory>- Returns:
- the type of this recipe
- Mappings:
Namespace Name Mixin selector official fLcja;f()Lcjd;intermediary method_17716Lnet/minecraft/class_1860;method_17716()Lnet/minecraft/class_3956;named getTypeLnet/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:
fitsin 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 aLcja;a(II)Zintermediary method_8113Lnet/minecraft/class_1860;method_8113(II)Znamed fitsLnet/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:
createIconin 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 hLcja;h()Lcfx;intermediary method_17447Lnet/minecraft/class_1860;method_17447()Lnet/minecraft/class_1799;named createIconLnet/minecraft/recipe/Recipe;createIcon()Lnet/minecraft/item/ItemStack;
-
testTemplate
- Mappings:
Namespace Name Mixin selector official aLcjn;a(Lcfx;)Zintermediary method_48453Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/class_1799;)Znamed testTemplateLnet/minecraft/recipe/SmithingRecipe;testTemplate(Lnet/minecraft/item/ItemStack;)Z
-
testBase
- Mappings:
Namespace Name Mixin selector official bLcjn;b(Lcfx;)Zintermediary method_48454Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/class_1799;)Znamed testBaseLnet/minecraft/recipe/SmithingRecipe;testBase(Lnet/minecraft/item/ItemStack;)Z
-
testAddition
- Mappings:
Namespace Name Mixin selector official cLcjn;c(Lcfx;)Zintermediary method_30029Lnet/minecraft/class_8059;method_30029(Lnet/minecraft/class_1799;)Znamed testAdditionLnet/minecraft/recipe/SmithingRecipe;testAddition(Lnet/minecraft/item/ItemStack;)Z
-