Class SmithingRecipe

java.lang.Object
net.minecraft.recipe.SmithingRecipe
All Implemented Interfaces:
Recipe<Inventory>

public class SmithingRecipe extends Object implements Recipe<Inventory>
Mappings:
Namespace Name
official btg
intermediary net/minecraft/class_5357
named net/minecraft/recipe/SmithingRecipe
  • Field Details

    • base

      private final Ingredient base
      Mappings:
      Namespace Name Mixin selector
      official a Lbtg;a:Lbsm;
      intermediary field_25389 Lnet/minecraft/class_5357;field_25389:Lnet/minecraft/class_1856;
      named base Lnet/minecraft/recipe/SmithingRecipe;base:Lnet/minecraft/recipe/Ingredient;
    • addition

      private final Ingredient addition
      Mappings:
      Namespace Name Mixin selector
      official b Lbtg;b:Lbsm;
      intermediary field_25390 Lnet/minecraft/class_5357;field_25390:Lnet/minecraft/class_1856;
      named addition Lnet/minecraft/recipe/SmithingRecipe;addition:Lnet/minecraft/recipe/Ingredient;
    • result

      private final ItemStack result
      Mappings:
      Namespace Name Mixin selector
      official c Lbtg;c:Lbpx;
      intermediary field_25391 Lnet/minecraft/class_5357;field_25391:Lnet/minecraft/class_1799;
      named result Lnet/minecraft/recipe/SmithingRecipe;result:Lnet/minecraft/item/ItemStack;
    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official d Lbtg;d:Lwp;
      intermediary field_25392 Lnet/minecraft/class_5357;field_25392:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/recipe/SmithingRecipe;id:Lnet/minecraft/util/Identifier;
  • Constructor Details

    • SmithingRecipe

      public SmithingRecipe(Identifier id, Ingredient base, Ingredient addition, ItemStack result)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbtg;<init>(Lwp;Lbsm;Lbsm;Lbpx;)V
      intermediary <init> Lnet/minecraft/class_5357;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;)V
      named <init> Lnet/minecraft/recipe/SmithingRecipe;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/ItemStack;)V
  • Method Details

    • matches

      public boolean matches(Inventory inventory, World world)
      Determines whether this recipe matches the contents currently placed inside the available crafting grid.
      Specified by:
      matches in interface Recipe<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official a Lbsp;a(Larc;Lbvx;)Z
      intermediary method_8115 Lnet/minecraft/class_1860;method_8115(Lnet/minecraft/class_1263;Lnet/minecraft/class_1937;)Z
      named matches Lnet/minecraft/recipe/Recipe;matches(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/world/World;)Z
    • craft

      public ItemStack craft(Inventory inventory)
      Crafts this recipe.

      This method may perform side effects on the inventory argument.

      This method should return a new item stack on each call.

      Specified by:
      craft in interface Recipe<Inventory>
      Returns:
      the resulting item stack
      Mappings:
      Namespace Name Mixin selector
      official a Lbsp;a(Larc;)Lbpx;
      intermediary method_8116 Lnet/minecraft/class_1860;method_8116(Lnet/minecraft/class_1263;)Lnet/minecraft/class_1799;
      named craft Lnet/minecraft/recipe/Recipe;craft(Lnet/minecraft/inventory/Inventory;)Lnet/minecraft/item/ItemStack;
    • fits

      public boolean fits(int width, int height)
      Determines whether this recipe's pattern will fit into the available crafting area.
      Specified by:
      fits in interface Recipe<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official a Lbsp;a(II)Z
      intermediary method_8113 Lnet/minecraft/class_1860;method_8113(II)Z
      named fits Lnet/minecraft/recipe/Recipe;fits(II)Z
    • getOutput

      public ItemStack getOutput()
      Specified by:
      getOutput in interface Recipe<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official c Lbsp;c()Lbpx;
      intermediary method_8110 Lnet/minecraft/class_1860;method_8110()Lnet/minecraft/class_1799;
      named getOutput Lnet/minecraft/recipe/Recipe;getOutput()Lnet/minecraft/item/ItemStack;
    • testAddition

      public boolean testAddition(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbtg;a(Lbpx;)Z
      intermediary method_30029 Lnet/minecraft/class_5357;method_30029(Lnet/minecraft/class_1799;)Z
      named testAddition Lnet/minecraft/recipe/SmithingRecipe;testAddition(Lnet/minecraft/item/ItemStack;)Z
    • createIcon

      public ItemStack createIcon()
      Creates the stack that is displayed on the recipe book tab containing this recipe, and on a toast when a recipe of this type is unlocked. Used in conjunction with Recipe.getGroup().
      Specified by:
      createIcon in interface Recipe<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official h Lbsp;h()Lbpx;
      intermediary method_17447 Lnet/minecraft/class_1860;method_17447()Lnet/minecraft/class_1799;
      named createIcon Lnet/minecraft/recipe/Recipe;createIcon()Lnet/minecraft/item/ItemStack;
    • getId

      public Identifier getId()
      Specified by:
      getId in interface Recipe<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official f Lbsp;f()Lwp;
      intermediary method_8114 Lnet/minecraft/class_1860;method_8114()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/recipe/Recipe;getId()Lnet/minecraft/util/Identifier;
    • getSerializer

      public RecipeSerializer<?> getSerializer()
      Specified by:
      getSerializer in interface Recipe<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official ai_ Lbsp;ai_()Lbsr;
      intermediary method_8119 Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;
      named getSerializer Lnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
    • getType

      public RecipeType<?> getType()
      Specified by:
      getType in interface Recipe<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official g Lbsp;g()Lbss;
      intermediary method_17716 Lnet/minecraft/class_1860;method_17716()Lnet/minecraft/class_3956;
      named getType Lnet/minecraft/recipe/Recipe;getType()Lnet/minecraft/recipe/RecipeType;
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Recipe<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official i Lbsp;i()Z
      intermediary method_31584 Lnet/minecraft/class_1860;method_31584()Z
      named isEmpty Lnet/minecraft/recipe/Recipe;isEmpty()Z