Class AbstractCookingRecipe

java.lang.Object
net.minecraft.recipe.SingleStackRecipe
net.minecraft.recipe.AbstractCookingRecipe
All Implemented Interfaces:
Recipe<SingleStackRecipeInput>
Direct Known Subclasses:
BlastingRecipe, CampfireCookingRecipe, SmeltingRecipe, SmokingRecipe

public abstract class AbstractCookingRecipe extends SingleStackRecipe
Mappings:
Namespace Name
named net/minecraft/recipe/AbstractCookingRecipe
intermediary net/minecraft/class_1874
official dbj
  • Field Details

    • category

      private final CookingRecipeCategory category
      Mappings:
      Namespace Name Mixin selector
      named category Lnet/minecraft/recipe/AbstractCookingRecipe;category:Lnet/minecraft/recipe/book/CookingRecipeCategory;
      intermediary field_40241 Lnet/minecraft/class_1874;field_40241:Lnet/minecraft/class_7709;
      official c Ldbj;c:Ldbp;
    • experience

      private final float experience
      Mappings:
      Namespace Name Mixin selector
      named experience Lnet/minecraft/recipe/AbstractCookingRecipe;experience:F
      intermediary field_9057 Lnet/minecraft/class_1874;field_9057:F
      official d Ldbj;d:F
    • cookingTime

      private final int cookingTime
      Mappings:
      Namespace Name Mixin selector
      named cookingTime Lnet/minecraft/recipe/AbstractCookingRecipe;cookingTime:I
      intermediary field_9058 Lnet/minecraft/class_1874;field_9058:I
      official e Ldbj;e:I
  • Constructor Details

    • AbstractCookingRecipe

      public AbstractCookingRecipe(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/recipe/AbstractCookingRecipe;<init>(Ljava/lang/String;Lnet/minecraft/recipe/book/CookingRecipeCategory;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/ItemStack;FI)V
      intermediary <init> Lnet/minecraft/class_1874;<init>(Ljava/lang/String;Lnet/minecraft/class_7709;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;FI)V
      official <init> Ldbj;<init>(Ljava/lang/String;Ldbp;Ldbz;Lcxo;FI)V
  • Method Details

    • getSerializer

      public abstract RecipeSerializer<? extends AbstractCookingRecipe> getSerializer()
      Returns the serializer associated with this recipe.
      Specified by:
      getSerializer in interface Recipe<SingleStackRecipeInput>
      Specified by:
      getSerializer in class SingleStackRecipe
      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 a Ldcd;a()Ldcn;
    • getType

      public abstract RecipeType<? extends AbstractCookingRecipe> getType()
      Returns the type of this recipe.

      The type in the recipe JSON format is the serializer instead.

      Specified by:
      getType in interface Recipe<SingleStackRecipeInput>
      Specified by:
      getType in class SingleStackRecipe
      Returns:
      the type of this recipe
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/recipe/Recipe;getType()Lnet/minecraft/recipe/RecipeType;
      intermediary method_17716 Lnet/minecraft/class_1860;method_17716()Lnet/minecraft/class_3956;
      official b Ldcd;b()Ldco;
    • getExperience

      public float getExperience()
      Mappings:
      Namespace Name Mixin selector
      named getExperience Lnet/minecraft/recipe/AbstractCookingRecipe;getExperience()F
      intermediary method_8171 Lnet/minecraft/class_1874;method_8171()F
      official c Ldbj;c()F
    • getCookingTime

      public int getCookingTime()
      Mappings:
      Namespace Name Mixin selector
      named getCookingTime Lnet/minecraft/recipe/AbstractCookingRecipe;getCookingTime()I
      intermediary method_8167 Lnet/minecraft/class_1874;method_8167()I
      official d Ldbj;d()I
    • getCategory

      public CookingRecipeCategory getCategory()
      Mappings:
      Namespace Name Mixin selector
      named getCategory Lnet/minecraft/recipe/AbstractCookingRecipe;getCategory()Lnet/minecraft/recipe/book/CookingRecipeCategory;
      intermediary method_45438 Lnet/minecraft/class_1874;method_45438()Lnet/minecraft/class_7709;
      official e Ldbj;e()Ldbp;
    • getCookerItem

      protected abstract Item getCookerItem()
      Mappings:
      Namespace Name Mixin selector
      named getCookerItem Lnet/minecraft/recipe/AbstractCookingRecipe;getCookerItem()Lnet/minecraft/item/Item;
      intermediary method_64663 Lnet/minecraft/class_1874;method_64663()Lnet/minecraft/class_1792;
      official f Ldbj;f()Lcxk;
    • getDisplays

      public List<RecipeDisplay> getDisplays()
      invalid reference
      list of recipe displays corresponding to the recipe

      Recipe displays are sent to the client and displayed in the recipe book. One recipe can have multiple displays.

      Mappings:
      Namespace Name Mixin selector
      named getDisplays Lnet/minecraft/recipe/Recipe;getDisplays()Ljava/util/List;
      intermediary method_64664 Lnet/minecraft/class_1860;method_64664()Ljava/util/List;
      official g Ldcd;g()Ljava/util/List;