Class ShapedRecipe.Serializer

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

public static class ShapedRecipe.Serializer extends Object implements RecipeSerializer<ShapedRecipe>
Mappings:
Namespace Name
named net/minecraft/recipe/ShapedRecipe$Serializer
intermediary net/minecraft/class_1869$class_1870
official dcr$a
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<ShapedRecipe> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/recipe/ShapedRecipe$Serializer;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_46102 Lnet/minecraft/class_1869$class_1870;field_46102:Lcom/mojang/serialization/MapCodec;
      official w Ldcr$a;w:Lcom/mojang/serialization/MapCodec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,ShapedRecipe> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/recipe/ShapedRecipe$Serializer;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48358 Lnet/minecraft/class_1869$class_1870;field_48358:Lnet/minecraft/class_9139;
      official x Ldcr$a;x:Lzt;
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • codec

      public com.mojang.serialization.MapCodec<ShapedRecipe> codec()
      Specified by:
      codec in interface RecipeSerializer<ShapedRecipe>
      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,ShapedRecipe> 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<ShapedRecipe>
      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;
    • read

      private static ShapedRecipe read(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named read Lnet/minecraft/recipe/ShapedRecipe$Serializer;read(Lnet/minecraft/network/RegistryByteBuf;)Lnet/minecraft/recipe/ShapedRecipe;
      intermediary method_8163 Lnet/minecraft/class_1869$class_1870;method_8163(Lnet/minecraft/class_9129;)Lnet/minecraft/class_1869;
      official a Ldcr$a;a(Lxg;)Ldcr;
    • write

      private static void write(RegistryByteBuf buf, ShapedRecipe recipe)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/recipe/ShapedRecipe$Serializer;write(Lnet/minecraft/network/RegistryByteBuf;Lnet/minecraft/recipe/ShapedRecipe;)V
      intermediary method_8165 Lnet/minecraft/class_1869$class_1870;method_8165(Lnet/minecraft/class_9129;Lnet/minecraft/class_1869;)V
      official a Ldcr$a;a(Lxg;Ldcr;)V