Class SmithingTransformRecipe

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

public class SmithingTransformRecipe extends Object implements SmithingRecipe
Mappings:
Namespace Name
named net/minecraft/recipe/SmithingTransformRecipe
intermediary net/minecraft/class_8060
official czr
  • Field Details

    • template

      final Ingredient template
      Mappings:
      Namespace Name Mixin selector
      named template Lnet/minecraft/recipe/SmithingTransformRecipe;template:Lnet/minecraft/recipe/Ingredient;
      intermediary field_42030 Lnet/minecraft/class_8060;field_42030:Lnet/minecraft/class_1856;
      official a Lczr;a:Lcyu;
    • base

      final Ingredient base
      Mappings:
      Namespace Name Mixin selector
      named base Lnet/minecraft/recipe/SmithingTransformRecipe;base:Lnet/minecraft/recipe/Ingredient;
      intermediary field_42031 Lnet/minecraft/class_8060;field_42031:Lnet/minecraft/class_1856;
      official b Lczr;b:Lcyu;
    • addition

      final Ingredient addition
      Mappings:
      Namespace Name Mixin selector
      named addition Lnet/minecraft/recipe/SmithingTransformRecipe;addition:Lnet/minecraft/recipe/Ingredient;
      intermediary field_42032 Lnet/minecraft/class_8060;field_42032:Lnet/minecraft/class_1856;
      official c Lczr;c:Lcyu;
    • result

      final ItemStack result
      Mappings:
      Namespace Name Mixin selector
      named result Lnet/minecraft/recipe/SmithingTransformRecipe;result:Lnet/minecraft/item/ItemStack;
      intermediary field_42033 Lnet/minecraft/class_8060;field_42033:Lnet/minecraft/class_1799;
      official d Lczr;d:Lcuo;
  • Constructor Details

    • SmithingTransformRecipe

      public SmithingTransformRecipe(Ingredient template, Ingredient base, Ingredient addition, ItemStack result)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/recipe/SmithingTransformRecipe;<init>(Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/ItemStack;)V
      intermediary <init> Lnet/minecraft/class_8060;<init>(Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;)V
      official <init> Lczr;<init>(Lcyu;Lcyu;Lcyu;Lcuo;)V
  • Method Details

    • matches

      public 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/SmithingTransformRecipe;matches(Lnet/minecraft/recipe/input/SmithingRecipeInput;Lnet/minecraft/world/World;)Z
      intermediary method_59999 Lnet/minecraft/class_8060;method_59999(Lnet/minecraft/class_9697;Lnet/minecraft/class_1937;)Z
      official a Lczr;a(Lczq;Ldcu;)Z
    • craft

      public ItemStack craft(SmithingRecipeInput smithingRecipeInput, RegistryWrapper.WrapperLookup wrapperLookup)
      Description copied from interface: Recipe
      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<SmithingRecipeInput>
      Returns:
      the resulting item stack
      Mappings:
      Namespace Name Mixin selector
      named craft Lnet/minecraft/recipe/SmithingTransformRecipe;craft(Lnet/minecraft/recipe/input/SmithingRecipeInput;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;
      intermediary method_60000 Lnet/minecraft/class_8060;method_60000(Lnet/minecraft/class_9697;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;
      official a Lczr;a(Lczq;Ljo$a;)Lcuo;
    • getResult

      public ItemStack getResult(RegistryWrapper.WrapperLookup registriesLookup)
      Returns a preview of the recipe's output.

      The returned stack should not be modified. To obtain the actual output, call craft(Inventory, DynamicRegistryManager).

      Specified by:
      getResult in interface Recipe<SmithingRecipeInput>
      Returns:
      a preview of the recipe's output
      Mappings:
      Namespace Name Mixin selector
      named getResult Lnet/minecraft/recipe/Recipe;getResult(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;
      intermediary method_8110 Lnet/minecraft/class_1860;method_8110(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;
      official a Lcyx;a(Ljo$a;)Lcuo;
    • testTemplate

      public boolean testTemplate(ItemStack stack)
      Specified by:
      testTemplate in interface SmithingRecipe
      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 Lczp;a(Lcuo;)Z
    • testBase

      public boolean testBase(ItemStack stack)
      Specified by:
      testBase in interface SmithingRecipe
      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 Lczp;b(Lcuo;)Z
    • testAddition

      public boolean testAddition(ItemStack stack)
      Specified by:
      testAddition in interface SmithingRecipe
      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 Lczp;c(Lcuo;)Z
    • getSerializer

      public RecipeSerializer<?> getSerializer()
      Returns the serializer associated with this recipe.
      Specified by:
      getSerializer in interface Recipe<SmithingRecipeInput>
      Returns:
      the serializer associated with this recipe
      Mappings:
      Namespace Name Mixin selector
      named getSerializer Lnet/minecraft/recipe/Recipe;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
      intermediary method_8119 Lnet/minecraft/class_1860;method_8119()Lnet/minecraft/class_1865;
      official ap_ Lcyx;ap_()Lczc;
    • isEmpty

      public boolean isEmpty()
      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<SmithingRecipeInput>
      Returns:
      whether this recipe has no ingredient or has any empty ingredient
      Mappings:
      Namespace Name Mixin selector
      named isEmpty Lnet/minecraft/recipe/Recipe;isEmpty()Z
      intermediary method_31584 Lnet/minecraft/class_1860;method_31584()Z
      official i Lcyx;i()Z