Class SynchronizeRecipesS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.SynchronizeRecipesS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class SynchronizeRecipesS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
official aay
intermediary net/minecraft/class_2788
named net/minecraft/network/packet/s2c/play/SynchronizeRecipesS2CPacket
  • Field Details

    • recipes

      private final List<RecipeEntry<?>> recipes
      Mappings:
      Namespace Name Mixin selector
      official a Laay;a:Ljava/util/List;
      intermediary field_12751 Lnet/minecraft/class_2788;field_12751:Ljava/util/List;
      named recipes Lnet/minecraft/network/packet/s2c/play/SynchronizeRecipesS2CPacket;recipes:Ljava/util/List;
  • Constructor Details

    • SynchronizeRecipesS2CPacket

      public SynchronizeRecipesS2CPacket(Collection<RecipeEntry<?>> recipes)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laay;<init>(Ljava/util/Collection;)V
      intermediary <init> Lnet/minecraft/class_2788;<init>(Ljava/util/Collection;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/SynchronizeRecipesS2CPacket;<init>(Ljava/util/Collection;)V
    • SynchronizeRecipesS2CPacket

      public SynchronizeRecipesS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laay;<init>(Lso;)V
      intermediary <init> Lnet/minecraft/class_2788;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/SynchronizeRecipesS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lvd;a(Lso;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Laay;a(Lww;)V
      intermediary method_11997 Lnet/minecraft/class_2788;method_11997(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/SynchronizeRecipesS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getRecipes

      public List<RecipeEntry<?>> getRecipes()
      Mappings:
      Namespace Name Mixin selector
      official a Laay;a()Ljava/util/List;
      intermediary method_11998 Lnet/minecraft/class_2788;method_11998()Ljava/util/List;
      named getRecipes Lnet/minecraft/network/packet/s2c/play/SynchronizeRecipesS2CPacket;getRecipes()Ljava/util/List;
    • readRecipe

      private static RecipeEntry<?> readRecipe(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Laay;b(Lso;)Lcmk;
      intermediary method_17817 Lnet/minecraft/class_2788;method_17817(Lnet/minecraft/class_2540;)Lnet/minecraft/class_8786;
      named readRecipe Lnet/minecraft/network/packet/s2c/play/SynchronizeRecipesS2CPacket;readRecipe(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/recipe/RecipeEntry;
    • writeRecipe

      public static <T extends Recipe<?>> void writeRecipe(PacketByteBuf buf, RecipeEntry<?> recipe)
      Mappings:
      Namespace Name Mixin selector
      official a Laay;a(Lso;Lcmk;)V
      intermediary method_17816 Lnet/minecraft/class_2788;method_17816(Lnet/minecraft/class_2540;Lnet/minecraft/class_8786;)V
      named writeRecipe Lnet/minecraft/network/packet/s2c/play/SynchronizeRecipesS2CPacket;writeRecipe(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/recipe/RecipeEntry;)V