Class SmithingTrimRecipe

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

public class SmithingTrimRecipe extends Object implements SmithingRecipe
Mappings:
Namespace Name
official cmz
intermediary net/minecraft/class_8062
named net/minecraft/recipe/SmithingTrimRecipe
  • Field Details

    • template

      final Ingredient template
      Mappings:
      Namespace Name Mixin selector
      official a Lcmz;a:Lcmg;
      intermediary field_42035 Lnet/minecraft/class_8062;field_42035:Lnet/minecraft/class_1856;
      named template Lnet/minecraft/recipe/SmithingTrimRecipe;template:Lnet/minecraft/recipe/Ingredient;
    • base

      final Ingredient base
      Mappings:
      Namespace Name Mixin selector
      official b Lcmz;b:Lcmg;
      intermediary field_42036 Lnet/minecraft/class_8062;field_42036:Lnet/minecraft/class_1856;
      named base Lnet/minecraft/recipe/SmithingTrimRecipe;base:Lnet/minecraft/recipe/Ingredient;
    • addition

      final Ingredient addition
      Mappings:
      Namespace Name Mixin selector
      official c Lcmz;c:Lcmg;
      intermediary field_42037 Lnet/minecraft/class_8062;field_42037:Lnet/minecraft/class_1856;
      named addition Lnet/minecraft/recipe/SmithingTrimRecipe;addition:Lnet/minecraft/recipe/Ingredient;
  • Constructor Details

    • SmithingTrimRecipe

      SmithingTrimRecipe(Ingredient template, Ingredient base, Ingredient addition)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcmz;<init>(Lcmg;Lcmg;Lcmg;)V
      intermediary <init> Lnet/minecraft/class_8062;<init>(Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;Lnet/minecraft/class_1856;)V
      named <init> Lnet/minecraft/recipe/SmithingTrimRecipe;<init>(Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/recipe/Ingredient;)V
  • Method Details

    • matches

      public boolean matches(Inventory inventory, World world)
      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 Lcmj;a(Lbgr;Lcpv;)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 registryManager)
      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 Lcmj;a(Lbgr;Lhr;)Lcjf;
      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;
    • getResult

      public ItemStack getResult(DynamicRegistryManager registryManager)
      Returns a preview of the recipe's output.

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

      Specified by:
      getResult in interface Recipe<Inventory>
      Returns:
      a preview of the recipe's output
      Mappings:
      Namespace Name Mixin selector
      official a Lcmj;a(Lhr;)Lcjf;
      intermediary method_8110 Lnet/minecraft/class_1860;method_8110(Lnet/minecraft/class_5455;)Lnet/minecraft/class_1799;
      named getResult Lnet/minecraft/recipe/Recipe;getResult(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/item/ItemStack;
    • testTemplate

      public boolean testTemplate(ItemStack stack)
      Specified by:
      testTemplate in interface SmithingRecipe
      Mappings:
      Namespace Name Mixin selector
      official a Lcmx;a(Lcjf;)Z
      intermediary method_48453 Lnet/minecraft/class_8059;method_48453(Lnet/minecraft/class_1799;)Z
      named testTemplate Lnet/minecraft/recipe/SmithingRecipe;testTemplate(Lnet/minecraft/item/ItemStack;)Z
    • testBase

      public boolean testBase(ItemStack stack)
      Specified by:
      testBase in interface SmithingRecipe
      Mappings:
      Namespace Name Mixin selector
      official b Lcmx;b(Lcjf;)Z
      intermediary method_48454 Lnet/minecraft/class_8059;method_48454(Lnet/minecraft/class_1799;)Z
      named testBase Lnet/minecraft/recipe/SmithingRecipe;testBase(Lnet/minecraft/item/ItemStack;)Z
    • testAddition

      public boolean testAddition(ItemStack stack)
      Specified by:
      testAddition in interface SmithingRecipe
      Mappings:
      Namespace Name Mixin selector
      official c Lcmx;c(Lcjf;)Z
      intermediary method_30029 Lnet/minecraft/class_8059;method_30029(Lnet/minecraft/class_1799;)Z
      named testAddition Lnet/minecraft/recipe/SmithingRecipe;testAddition(Lnet/minecraft/item/ItemStack;)Z
    • getSerializer

      public RecipeSerializer<?> getSerializer()
      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 an_ Lcmj;an_()Lcmm;
      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()
      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 i Lcmj;i()Z
      intermediary method_31584 Lnet/minecraft/class_1860;method_31584()Z
      named isEmpty Lnet/minecraft/recipe/Recipe;isEmpty()Z