Class CookingRecipeSerializer<T extends AbstractCookingRecipe>

java.lang.Object
net.minecraft.recipe.CookingRecipeSerializer<T>
All Implemented Interfaces:
RecipeSerializer<T>

public class CookingRecipeSerializer<T extends AbstractCookingRecipe> extends Object implements RecipeSerializer<T>
Mappings:
Namespace Name
named net/minecraft/recipe/CookingRecipeSerializer
intermediary net/minecraft/class_3957
official czj
  • Field Details

    • recipeFactory

      private final AbstractCookingRecipe.RecipeFactory<T extends AbstractCookingRecipe> recipeFactory
      Mappings:
      Namespace Name Mixin selector
      named recipeFactory Lnet/minecraft/recipe/CookingRecipeSerializer;recipeFactory:Lnet/minecraft/recipe/AbstractCookingRecipe$RecipeFactory;
      intermediary field_17552 Lnet/minecraft/class_3957;field_17552:Lnet/minecraft/class_1874$class_3958;
      official x Lczj;x:Lcyg$a;
    • codec

      private final com.mojang.serialization.MapCodec<T extends AbstractCookingRecipe> codec
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/recipe/CookingRecipeSerializer;codec:Lcom/mojang/serialization/MapCodec;
      intermediary field_46105 Lnet/minecraft/class_3957;field_46105:Lcom/mojang/serialization/MapCodec;
      official y Lczj;y:Lcom/mojang/serialization/MapCodec;
    • packetCodec

      private final PacketCodec<RegistryByteBuf,T extends AbstractCookingRecipe> packetCodec
      Mappings:
      Namespace Name Mixin selector
      named packetCodec Lnet/minecraft/recipe/CookingRecipeSerializer;packetCodec:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48361 Lnet/minecraft/class_3957;field_48361:Lnet/minecraft/class_9139;
      official z Lczj;z:Lzn;
  • Constructor Details

    • CookingRecipeSerializer

      public CookingRecipeSerializer(AbstractCookingRecipe.RecipeFactory<T> recipeFactory, int cookingTime)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/recipe/CookingRecipeSerializer;<init>(Lnet/minecraft/recipe/AbstractCookingRecipe$RecipeFactory;I)V
      intermediary <init> Lnet/minecraft/class_3957;<init>(Lnet/minecraft/class_1874$class_3958;I)V
      official <init> Lczj;<init>(Lcyg$a;I)V
  • Method Details

    • codec

      public com.mojang.serialization.MapCodec<T> codec()
      Specified by:
      codec in interface RecipeSerializer<T extends AbstractCookingRecipe>
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/recipe/RecipeSerializer;codec()Lcom/mojang/serialization/MapCodec;
      intermediary method_53736 Lnet/minecraft/class_1865;method_53736()Lcom/mojang/serialization/MapCodec;
      official a Lczb;a()Lcom/mojang/serialization/MapCodec;
    • packetCodec

      public PacketCodec<RegistryByteBuf,T> packetCodec()
      Specified by:
      packetCodec in interface RecipeSerializer<T extends AbstractCookingRecipe>
      Mappings:
      Namespace Name Mixin selector
      named packetCodec Lnet/minecraft/recipe/RecipeSerializer;packetCodec()Lnet/minecraft/network/codec/PacketCodec;
      intermediary method_56104 Lnet/minecraft/class_1865;method_56104()Lnet/minecraft/class_9139;
      official b Lczb;b()Lzn;
    • read

      private T read(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named read Lnet/minecraft/recipe/CookingRecipeSerializer;read(Lnet/minecraft/network/RegistryByteBuf;)Lnet/minecraft/recipe/AbstractCookingRecipe;
      intermediary method_17737 Lnet/minecraft/class_3957;method_17737(Lnet/minecraft/class_9129;)Lnet/minecraft/class_1874;
      official a Lczj;a(Lxa;)Lcyg;
    • write

      private void write(RegistryByteBuf buf, T recipe)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/recipe/CookingRecipeSerializer;write(Lnet/minecraft/network/RegistryByteBuf;Lnet/minecraft/recipe/AbstractCookingRecipe;)V
      intermediary method_17735 Lnet/minecraft/class_3957;method_17735(Lnet/minecraft/class_9129;Lnet/minecraft/class_1874;)V
      official a Lczj;a(Lxa;Lcyg;)V
    • create

      public AbstractCookingRecipe create(String group, CookingRecipeCategory category, Ingredient ingredient, ItemStack result, float experience, int cookingTime)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/recipe/CookingRecipeSerializer;create(Ljava/lang/String;Lnet/minecraft/recipe/book/CookingRecipeCategory;Lnet/minecraft/recipe/Ingredient;Lnet/minecraft/item/ItemStack;FI)Lnet/minecraft/recipe/AbstractCookingRecipe;
      intermediary method_55104 Lnet/minecraft/class_3957;method_55104(Ljava/lang/String;Lnet/minecraft/class_7709;Lnet/minecraft/class_1856;Lnet/minecraft/class_1799;FI)Lnet/minecraft/class_1874;
      official a Lczj;a(Ljava/lang/String;Lcym;Lcyu;Lcur;FI)Lcyg;