Class SmithingRecipe

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

@Deprecated(forRemoval=true) public class SmithingRecipe extends Object implements class_8059
Deprecated, for removal: This API element is subject to removal in a future version.
Mappings:
Namespace Name
official chr
intermediary net/minecraft/class_5357
named net/minecraft/recipe/SmithingRecipe
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final Ingredient
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    (package private) final Ingredient
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private final Identifier
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    (package private) final ItemStack
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SmithingRecipe(Identifier id, Ingredient base, Ingredient addition, ItemStack result)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    craft(Inventory inventory, DynamicRegistryManager dynamicRegistryManager)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Crafts this recipe.
    boolean
    fits(int width, int height)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns whether this recipe will fit into the given grid size.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the ID of this recipe.
    getOutput(DynamicRegistryManager dynamicRegistryManager)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a preview of the recipe's output.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the serializer associated with this recipe.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns whether this recipe has no ingredient or has any empty ingredient.
    boolean
    matches(Inventory inventory, World world)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns whether this recipe matches the contents inside the inventory in the given world.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.class_8059

    createIcon, getType

    Methods inherited from interface net.minecraft.recipe.Recipe

    getGroup, getIngredients, getRemainder, isIgnoredInRecipeBook
  • Field Details

    • base

      final Ingredient base
      Deprecated, for removal: This API element is subject to removal in a future version.
      Mappings:
      Namespace Name Mixin selector
      official a Lchr;a:Lchq;
      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

      final Ingredient addition
      Deprecated, for removal: This API element is subject to removal in a future version.
      Mappings:
      Namespace Name Mixin selector
      official b Lchr;b:Lchq;
      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

      final ItemStack result
      Deprecated, for removal: This API element is subject to removal in a future version.
      Mappings:
      Namespace Name Mixin selector
      official c Lchr;c:Lcer;
      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
      Deprecated, for removal: This API element is subject to removal in a future version.
      Mappings:
      Namespace Name Mixin selector
      official d Lchr;d:Lacs;
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Mappings:
      Namespace Name Mixin selector
      official <init> Lchr;<init>(Lacs;Lchq;Lchq;Lcer;)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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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<Inventory>
      Parameters:
      inventory - the input inventory
      world - the input world
      Returns:
      whether this recipe matches the contents inside the inventory in the given world
      Mappings:
      Namespace Name Mixin selector
      official a Lchu;a(Lbcz;Lcle;)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, DynamicRegistryManager dynamicRegistryManager)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Crafts this recipe.

      This method does not perform side effects on the inventory.

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

      Specified by:
      craft in interface Recipe<Inventory>
      Parameters:
      inventory - the input inventory
      Returns:
      the resulting item stack
      Mappings:
      Namespace Name Mixin selector
      official a Lchu;a(Lbcz;Lhn;)Lcer;
      intermediary method_8116 Lnet/minecraft/class_1860;method_8116(Lnet/minecraft/class_1263;Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;
      named craft Lnet/minecraft/recipe/Recipe;craft(Lnet/minecraft/inventory/Inventory;Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
    • fits

      public boolean fits(int width, int height)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns whether this recipe will fit into the given grid size.

      This is currently only used by recipe book.

      Specified by:
      fits in interface class_8059
      Specified by:
      fits in interface Recipe<Inventory>
      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
      official a Lchu;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(DynamicRegistryManager dynamicRegistryManager)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a preview of the recipe's output.

      The returned stack should not be modified. To obtain the actual output, call

      invalid @link
      #craft(Inventory)
      .
      Specified by:
      getOutput in interface Recipe<Inventory>
      Returns:
      a preview of the recipe's output
      Mappings:
      Namespace Name Mixin selector
      official a Lchu;a(Lhn;)Lcer;
      intermediary method_8110 Lnet/minecraft/class_1860;method_8110(Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;
      named getOutput Lnet/minecraft/recipe/Recipe;getOutput(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
    • method_48453

      public boolean method_48453(ItemStack itemStack)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      method_48453 in interface class_8059
      Mappings:
      Namespace Name Mixin selector
      official a Lcih;a(Lcer;)Z
      intermediary method_48453 Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/class_1799;)Z
      named method_48453 Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/item/ItemStack;)Z
    • method_48454

      public boolean method_48454(ItemStack itemStack)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      method_48454 in interface class_8059
      Mappings:
      Namespace Name Mixin selector
      official b Lcih;b(Lcer;)Z
      intermediary method_48454 Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/class_1799;)Z
      named method_48454 Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/item/ItemStack;)Z
    • testAddition

      public boolean testAddition(ItemStack itemStack)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      testAddition in interface class_8059
      Mappings:
      Namespace Name Mixin selector
      official c Lcih;c(Lcer;)Z
      intermediary method_30029 Lnet/minecraft/class_8059;method_30029(Lnet/minecraft/class_1799;)Z
      named testAddition Lnet/minecraft/class_8059;testAddition(Lnet/minecraft/item/ItemStack;)Z
    • getId

      public Identifier getId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the ID of this recipe.
      Specified by:
      getId in interface Recipe<Inventory>
      Returns:
      the ID of this recipe
      Mappings:
      Namespace Name Mixin selector
      official e Lchu;e()Lacs;
      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()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the serializer associated with this recipe.
      Specified by:
      getSerializer in interface Recipe<Inventory>
      Returns:
      the serializer associated with this recipe
      Mappings:
      Namespace Name Mixin selector
      official Z_ Lchu;Z_()Lchw;
      intermediary method_8119 Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;
      named getSerializer Lnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
    • isEmpty

      public boolean isEmpty()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns whether this recipe has no ingredient or has any empty ingredient. The recipe book uses this to ignore recipes for display.
      Specified by:
      isEmpty in interface Recipe<Inventory>
      Returns:
      whether this recipe has no ingredient or has any empty ingredient
      Mappings:
      Namespace Name Mixin selector
      official aa_ Lchu;aa_()Z
      intermediary method_31584 Lnet/minecraft/class_1860;method_31584()Z
      named isEmpty Lnet/minecraft/recipe/Recipe;isEmpty()Z