Class SpecialCraftingRecipe

java.lang.Object
net.minecraft.recipe.SpecialCraftingRecipe
All Implemented Interfaces:
CraftingRecipe, Recipe<CraftingInventory>
Direct Known Subclasses:
ArmorDyeRecipe, BannerDuplicateRecipe, BookCloningRecipe, FireworkRocketRecipe, FireworkStarFadeRecipe, FireworkStarRecipe, MapCloningRecipe, RepairItemRecipe, ShieldDecorationRecipe, ShulkerBoxColoringRecipe, SuspiciousStewRecipe, TippedArrowRecipe

public abstract class SpecialCraftingRecipe extends Object implements CraftingRecipe
Mappings:
Namespace Name
official cgh
intermediary net/minecraft/class_1852
named net/minecraft/recipe/SpecialCraftingRecipe
  • Field Details

    • id

      private final Identifier id
      Mappings:
      Namespace Name Mixin selector
      official a Lcgh;a:Lacf;
      intermediary field_9009 Lnet/minecraft/class_1852;field_9009:Lnet/minecraft/class_2960;
      named id Lnet/minecraft/recipe/SpecialCraftingRecipe;id:Lnet/minecraft/util/Identifier;
    • category

      private final CraftingRecipeCategory category
      Mappings:
      Namespace Name Mixin selector
      official b Lcgh;b:Lcgf;
      intermediary field_40255 Lnet/minecraft/class_1852;field_40255:Lnet/minecraft/class_7710;
      named category Lnet/minecraft/recipe/SpecialCraftingRecipe;category:Lnet/minecraft/recipe/book/CraftingRecipeCategory;
  • Constructor Details

    • SpecialCraftingRecipe

      public SpecialCraftingRecipe(Identifier id, CraftingRecipeCategory category)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcgh;<init>(Lacf;Lcgf;)V
      intermediary <init> Lnet/minecraft/class_1852;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_7710;)V
      named <init> Lnet/minecraft/recipe/SpecialCraftingRecipe;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/recipe/book/CraftingRecipeCategory;)V
  • Method Details

    • getId

      public Identifier getId()
      Returns the ID of this recipe.
      Specified by:
      getId in interface Recipe<CraftingInventory>
      Returns:
      the ID of this recipe
      Mappings:
      Namespace Name Mixin selector
      official f Lcgo;f()Lacf;
      intermediary method_8114 Lnet/minecraft/class_1860;method_8114()Lnet/minecraft/class_2960;
      named getId Lnet/minecraft/recipe/Recipe;getId()Lnet/minecraft/util/Identifier;
    • isIgnoredInRecipeBook

      public boolean isIgnoredInRecipeBook()
      Returns whether this recipe is ignored by the recipe book. If a recipe is ignored by the recipe book, it will be never displayed. In addition, it won't be restricted by the doLimitedCrafting game rule.
      Specified by:
      isIgnoredInRecipeBook in interface Recipe<CraftingInventory>
      Returns:
      whether this recipe is ignored by the recipe book
      Mappings:
      Namespace Name Mixin selector
      official W_ Lcgo;W_()Z
      intermediary method_8118 Lnet/minecraft/class_1860;method_8118()Z
      named isIgnoredInRecipeBook Lnet/minecraft/recipe/Recipe;isIgnoredInRecipeBook()Z
    • getOutput

      public ItemStack getOutput()
      Returns a preview of the recipe's output.

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

      Specified by:
      getOutput in interface Recipe<CraftingInventory>
      Returns:
      a preview of the recipe's output
      Mappings:
      Namespace Name Mixin selector
      official c Lcgo;c()Lcdt;
      intermediary method_8110 Lnet/minecraft/class_1860;method_8110()Lnet/minecraft/class_1799;
      named getOutput Lnet/minecraft/recipe/Recipe;getOutput()Lnet/minecraft/item/ItemStack;
    • getCategory

      public CraftingRecipeCategory getCategory()
      Specified by:
      getCategory in interface CraftingRecipe
      Mappings:
      Namespace Name Mixin selector
      official e Lcgg;e()Lcgf;
      intermediary method_45441 Lnet/minecraft/class_3955;method_45441()Lnet/minecraft/class_7710;
      named getCategory Lnet/minecraft/recipe/CraftingRecipe;getCategory()Lnet/minecraft/recipe/book/CraftingRecipeCategory;