Class SmithingTrimRecipe

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

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

    • template

      final Optional<Ingredient> template
      Mappings:
      Namespace Name Mixin selector
      named template Lnet/minecraft/recipe/SmithingTrimRecipe;template:Ljava/util/Optional;
      intermediary field_42035 Lnet/minecraft/class_8062;field_42035:Ljava/util/Optional;
      official a Ldao;a:Ljava/util/Optional;
    • base

      final Optional<Ingredient> base
      Mappings:
      Namespace Name Mixin selector
      named base Lnet/minecraft/recipe/SmithingTrimRecipe;base:Ljava/util/Optional;
      intermediary field_42036 Lnet/minecraft/class_8062;field_42036:Ljava/util/Optional;
      official b Ldao;b:Ljava/util/Optional;
    • addition

      final Optional<Ingredient> addition
      Mappings:
      Namespace Name Mixin selector
      named addition Lnet/minecraft/recipe/SmithingTrimRecipe;addition:Ljava/util/Optional;
      intermediary field_42037 Lnet/minecraft/class_8062;field_42037:Ljava/util/Optional;
      official c Ldao;c:Ljava/util/Optional;
    • field_52606

      @Nullable private @Nullable class_9887 field_52606
      Mappings:
      Namespace Name Mixin selector
      named field_52606 Lnet/minecraft/recipe/SmithingTrimRecipe;field_52606:Lnet/minecraft/class_9887;
      intermediary field_52606 Lnet/minecraft/class_8062;field_52606:Lnet/minecraft/class_9887;
      official d Ldao;d:Lczs;
  • Constructor Details

  • Method Details

    • 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/SmithingTrimRecipe;craft(Lnet/minecraft/recipe/input/SmithingRecipeInput;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/item/ItemStack;
      intermediary method_60002 Lnet/minecraft/class_8062;method_60002(Lnet/minecraft/class_9697;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_1799;
      official a Ldao;a(Ldam;Ljp$a;)Lcvl;
    • 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 Lczt;a(Ljp$a;)Lcvl;
    • 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 Ldal;a(Lcvl;)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 Ldal;b(Lcvl;)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 Ldal;c(Lcvl;)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 as_ Lczt;as_()Lczy;
    • method_61671

      public class_9887 method_61671()
      Specified by:
      method_61671 in interface Recipe<SmithingRecipeInput>
      Mappings:
      Namespace Name Mixin selector
      named method_61671 Lnet/minecraft/recipe/Recipe;method_61671()Lnet/minecraft/class_9887;
      intermediary method_61671 Lnet/minecraft/class_1860;method_61671()Lnet/minecraft/class_9887;
      official a Lczt;a()Lczs;