Class PlayerInteractItemC2SPacket

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

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

    • CODEC

      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48226 Lnet/minecraft/class_2886;field_48226:Lnet/minecraft/class_9139;
      official a Lait;a:Lzn;
    • hand

      private final Hand hand
      Mappings:
      Namespace Name Mixin selector
      named hand Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;hand:Lnet/minecraft/util/Hand;
      intermediary field_13136 Lnet/minecraft/class_2886;field_13136:Lnet/minecraft/class_1268;
      official b Lait;b:Lbqv;
    • sequence

      private final int sequence
      Mappings:
      Namespace Name Mixin selector
      named sequence Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;sequence:I
      intermediary field_38050 Lnet/minecraft/class_2886;field_38050:I
      official c Lait;c:I
  • Constructor Details

    • PlayerInteractItemC2SPacket

      public PlayerInteractItemC2SPacket(Hand hand, int sequence)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;<init>(Lnet/minecraft/util/Hand;I)V
      intermediary <init> Lnet/minecraft/class_2886;<init>(Lnet/minecraft/class_1268;I)V
      official <init> Lait;<init>(Lbqv;I)V
    • PlayerInteractItemC2SPacket

      private PlayerInteractItemC2SPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary <init> Lnet/minecraft/class_2886;<init>(Lnet/minecraft/class_2540;)V
      official <init> Lait;<init>(Lwm;)V
  • Method Details

    • write

      private void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;write(Lnet/minecraft/network/PacketByteBuf;)V
      intermediary method_56006 Lnet/minecraft/class_2886;method_56006(Lnet/minecraft/class_2540;)V
      official a Lait;a(Lwm;)V
    • getPacketId

      public PacketType<PlayerInteractItemC2SPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Lzw;a()Lzy;
    • apply

      public void apply(ServerPlayPacketListener serverPlayPacketListener)
      Specified by:
      apply in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
      intermediary method_12550 Lnet/minecraft/class_2886;method_12550(Lnet/minecraft/class_2792;)V
      official a Lait;a(Lagw;)V
    • getHand

      public Hand getHand()
      Mappings:
      Namespace Name Mixin selector
      named getHand Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;getHand()Lnet/minecraft/util/Hand;
      intermediary method_12551 Lnet/minecraft/class_2886;method_12551()Lnet/minecraft/class_1268;
      official b Lait;b()Lbqv;
    • getSequence

      public int getSequence()
      Mappings:
      Namespace Name Mixin selector
      named getSequence Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;getSequence()I
      intermediary method_42081 Lnet/minecraft/class_2886;method_42081()I
      official e Lait;e()I