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 ajl
  • 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 Lajl;a:Lzt;
    • 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 Lajl;b:Lbth;
    • 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 Lajl;c:I
    • yaw

      private final float yaw
      Mappings:
      Namespace Name Mixin selector
      named yaw Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;yaw:F
      intermediary field_51930 Lnet/minecraft/class_2886;field_51930:F
      official d Lajl;d:F
    • pitch

      private final float pitch
      Mappings:
      Namespace Name Mixin selector
      named pitch Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;pitch:F
      intermediary field_51931 Lnet/minecraft/class_2886;field_51931:F
      official e Lajl;e:F
  • Constructor Details

    • PlayerInteractItemC2SPacket

      public PlayerInteractItemC2SPacket(Hand hand, int sequence, float yaw, float pitch)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;<init>(Lnet/minecraft/util/Hand;IFF)V
      intermediary <init> Lnet/minecraft/class_2886;<init>(Lnet/minecraft/class_1268;IFF)V
      official <init> Lajl;<init>(Lbth;IFF)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> Lajl;<init>(Lws;)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 Lajl;a(Lws;)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 Laac;a()Laae;
    • 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 Lajl;a(Lahm;)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 Lajl;b()Lbth;
    • 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 Lajl;e()I
    • getYaw

      public float getYaw()
      Mappings:
      Namespace Name Mixin selector
      named getYaw Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;getYaw()F
      intermediary method_60586 Lnet/minecraft/class_2886;method_60586()F
      official f Lajl;f()F
    • getPitch

      public float getPitch()
      Mappings:
      Namespace Name Mixin selector
      named getPitch Lnet/minecraft/network/packet/c2s/play/PlayerInteractItemC2SPacket;getPitch()F
      intermediary method_60587 Lnet/minecraft/class_2886;method_60587()F
      official g Lajl;g()F