Class AbstractCookingRecipe.Serializer<T extends AbstractCookingRecipe>

java.lang.Object
net.minecraft.recipe.AbstractCookingRecipe.Serializer<T>
All Implemented Interfaces:
RecipeSerializer<T>
Enclosing class:
AbstractCookingRecipe

public static class AbstractCookingRecipe.Serializer<T extends AbstractCookingRecipe> extends Object implements RecipeSerializer<T>
Mappings:
Namespace Name
named net/minecraft/recipe/AbstractCookingRecipe$Serializer
intermediary net/minecraft/class_1874$class_10285
official dbj$b
  • Field Details

    • codec

      private final com.mojang.serialization.MapCodec<T extends AbstractCookingRecipe> codec
      Mappings:
      Namespace Name Mixin selector
      named codec Lnet/minecraft/recipe/AbstractCookingRecipe$Serializer;codec:Lcom/mojang/serialization/MapCodec;
      intermediary field_54625 Lnet/minecraft/class_1874$class_10285;field_54625:Lcom/mojang/serialization/MapCodec;
      official w Ldbj$b;w:Lcom/mojang/serialization/MapCodec;
    • packetCodec

      private final PacketCodec<RegistryByteBuf,T extends AbstractCookingRecipe> packetCodec
      Mappings:
      Namespace Name Mixin selector
      named packetCodec Lnet/minecraft/recipe/AbstractCookingRecipe$Serializer;packetCodec:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_54626 Lnet/minecraft/class_1874$class_10285;field_54626:Lnet/minecraft/class_9139;
      official x Ldbj$b;x:Lzt;
  • Constructor Details

    • Serializer

      public Serializer(AbstractCookingRecipe.RecipeFactory<T> factory, int defaultCookingTime)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/recipe/AbstractCookingRecipe$Serializer;<init>(Lnet/minecraft/recipe/AbstractCookingRecipe$RecipeFactory;I)V
      intermediary <init> Lnet/minecraft/class_1874$class_10285;<init>(Lnet/minecraft/class_1874$class_3958;I)V
      official <init> Ldbj$b;<init>(Ldbj$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 Ldcn;a()Lcom/mojang/serialization/MapCodec;
    • packetCodec

      public PacketCodec<RegistryByteBuf,T> packetCodec()
      Deprecated.
      Recipe is no longer synced to the clients, making this obsolete.
      Returns the packet codec for serializing recipes over the network.
      Specified by:
      packetCodec in interface RecipeSerializer<T extends AbstractCookingRecipe>
      Returns:
      the packet codec for serializing recipes over the network
      See Also:
      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 Ldcn;b()Lzt;