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 so
intermediary net/minecraft/class_2788
named net/minecraft/network/packet/s2c/play/SynchronizeRecipesS2CPacket
  • Field Details

    • recipes

      private List<Recipe<?>> recipes
      Mappings:
      Namespace Name Mixin selector
      official a Lso;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()
    • SynchronizeRecipesS2CPacket

      public SynchronizeRecipesS2CPacket​(Collection<Recipe<?>> recipes)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lso;<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
  • Method Details

    • apply

      public void apply​(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lso;a(Lpd;)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
    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lpa;a(Lnw;)V
      intermediary method_11053 Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lpa;b(Lnw;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • getRecipes

      @Environment(CLIENT) public List<Recipe<?>> getRecipes()
      Mappings:
      Namespace Name Mixin selector
      official b Lso;b()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

      public static Recipe<?> readRecipe​(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official c Lso;c(Lnw;)Lbqn;
      intermediary method_17817 Lnet/minecraft/class_2788;method_17817(Lnet/minecraft/class_2540;)Lnet/minecraft/class_1860;
      named readRecipe Lnet/minecraft/network/packet/s2c/play/SynchronizeRecipesS2CPacket;readRecipe(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/recipe/Recipe;
    • writeRecipe

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