Class CraftRequestC2SPacket

java.lang.Object
net.minecraft.network.packet.c2s.play.CraftRequestC2SPacket
All Implemented Interfaces:
Packet<ServerPlayPacketListener>

public class CraftRequestC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Mappings:
Namespace Name
official acc
intermediary net/minecraft/class_2840
named net/minecraft/network/packet/c2s/play/CraftRequestC2SPacket
  • Field Details

    • syncId

      private final int syncId
      Mappings:
      Namespace Name Mixin selector
      official a Lacc;a:I
      intermediary field_12933 Lnet/minecraft/class_2840;field_12933:I
      named syncId Lnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;syncId:I
    • recipe

      private final Identifier recipe
      Mappings:
      Namespace Name Mixin selector
      official b Lacc;b:Laew;
      intermediary field_12931 Lnet/minecraft/class_2840;field_12931:Lnet/minecraft/class_2960;
      named recipe Lnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;recipe:Lnet/minecraft/util/Identifier;
    • craftAll

      private final boolean craftAll
      Mappings:
      Namespace Name Mixin selector
      official c Lacc;c:Z
      intermediary field_12932 Lnet/minecraft/class_2840;field_12932:Z
      named craftAll Lnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;craftAll:Z
  • Constructor Details

    • CraftRequestC2SPacket

      public CraftRequestC2SPacket(int syncId, RecipeEntry<?> recipe, boolean craftAll)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lacc;<init>(ILcmk;Z)V
      intermediary <init> Lnet/minecraft/class_2840;<init>(ILnet/minecraft/class_8786;Z)V
      named <init> Lnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;<init>(ILnet/minecraft/recipe/RecipeEntry;Z)V
    • CraftRequestC2SPacket

      public CraftRequestC2SPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lacc;<init>(Lso;)V
      intermediary <init> Lnet/minecraft/class_2840;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ServerPlayPacketListener>
      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(ServerPlayPacketListener serverPlayPacketListener)
      Specified by:
      apply in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lacc;a(Labc;)V
      intermediary method_12317 Lnet/minecraft/class_2840;method_12317(Lnet/minecraft/class_2792;)V
      named apply Lnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
    • getSyncId

      public int getSyncId()
      Mappings:
      Namespace Name Mixin selector
      official a Lacc;a()I
      intermediary method_12318 Lnet/minecraft/class_2840;method_12318()I
      named getSyncId Lnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;getSyncId()I
    • getRecipe

      public Identifier getRecipe()
      Mappings:
      Namespace Name Mixin selector
      official d Lacc;d()Laew;
      intermediary method_12320 Lnet/minecraft/class_2840;method_12320()Lnet/minecraft/class_2960;
      named getRecipe Lnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;getRecipe()Lnet/minecraft/util/Identifier;
    • shouldCraftAll

      public boolean shouldCraftAll()
      Mappings:
      Namespace Name Mixin selector
      official e Lacc;e()Z
      intermediary method_12319 Lnet/minecraft/class_2840;method_12319()Z
      named shouldCraftAll Lnet/minecraft/network/packet/c2s/play/CraftRequestC2SPacket;shouldCraftAll()Z