Interface SmithingRecipe

All Superinterfaces:
Recipe<SmithingRecipeInput>
All Known Implementing Classes:
SmithingTransformRecipe, SmithingTrimRecipe

public interface SmithingRecipe extends Recipe<SmithingRecipeInput>
Mappings:
Namespace Name
named net/minecraft/recipe/SmithingRecipe
intermediary net/minecraft/class_8059
official daz
  • Method Details

    • getType

      default RecipeType<?> getType()
      Returns the type of this recipe.

      The type in the recipe JSON format is the serializer instead.

      Specified by:
      getType in interface Recipe<SmithingRecipeInput>
      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 Ldah;e()Ldan;
    • 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 interface Recipe<SmithingRecipeInput>
      Parameters:
      width - the width of the input inventory
      height - 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 Ldah;a(II)Z
    • createIcon

      default ItemStack 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 interface Recipe<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 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 Ldah;g()Lcvp;
    • matches

      default boolean matches(SmithingRecipeInput smithingRecipeInput, World world)
      Description copied from interface: Recipe
      Returns whether this recipe matches the contents inside the inventory in the given world.

      The world currently is only used by the map cloning recipe to prevent duplication of explorer maps.

      Specified by:
      matches in interface Recipe<SmithingRecipeInput>
      Parameters:
      world - the input world
      Returns:
      whether this recipe matches the contents inside the inventory in the given world
      Mappings:
      Namespace Name Mixin selector
      named matches Lnet/minecraft/recipe/SmithingRecipe;matches(Lnet/minecraft/recipe/input/SmithingRecipeInput;Lnet/minecraft/world/World;)Z
      intermediary method_61702 Lnet/minecraft/class_8059;method_61702(Lnet/minecraft/class_9697;Lnet/minecraft/class_1937;)Z
      official a Ldaz;a(Ldba;Ldeg;)Z
    • testTemplate

      boolean testTemplate(ItemStack stack)
      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 Ldaz;a(Lcvp;)Z
    • testBase

      boolean testBase(ItemStack stack)
      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 Ldaz;b(Lcvp;)Z
    • testAddition

      boolean testAddition(ItemStack stack)
      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 Ldaz;c(Lcvp;)Z