Class PlayerActionC2SPacket

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

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

    • pos

      private BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official a Liy;a:Lcl;
      intermediary field_11705 Lnet/minecraft/class_2066;field_11705:Lnet/minecraft/class_2552;
      named pos Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;pos:Lnet/minecraft/util/math/BlockPos;
    • direction

      private Direction direction
      Mappings:
      Namespace Name Mixin selector
      official b Liy;b:Lcs;
      intermediary field_11706 Lnet/minecraft/class_2066;field_11706:Lnet/minecraft/class_1354;
      named direction Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;direction:Lnet/minecraft/util/math/Direction;
    • action

      Mappings:
      Namespace Name Mixin selector
      official c Liy;c:Liy$a;
      intermediary field_11707 Lnet/minecraft/class_2066;field_11707:Lnet/minecraft/class_2066$class_2589;
      named action Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;action:Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;
  • Constructor Details

    • PlayerActionC2SPacket

      public PlayerActionC2SPacket()
    • PlayerActionC2SPacket

      @Environment(CLIENT) public PlayerActionC2SPacket(PlayerActionC2SPacket.Action action, BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official <init> Liy;<init>(Liy$a;Lcl;Lcs;)V
      intermediary <init> Lnet/minecraft/class_2066;<init>(Lnet/minecraft/class_2066$class_2589;Lnet/minecraft/class_2552;Lnet/minecraft/class_1354;)V
      named <init> Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;<init>(Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)V
  • Method Details

    • read

      public void read(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ServerPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lfh;a(Leo;)V
      intermediary method_7535 Lnet/minecraft/class_700;method_7535(Lnet/minecraft/class_1967;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/util/PacketByteBuf;)V
    • write

      public void write(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ServerPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lfh;b(Leo;)V
      intermediary method_7539 Lnet/minecraft/class_700;method_7539(Lnet/minecraft/class_1967;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/util/PacketByteBuf;)V
    • apply

      public void apply(ServerPlayPacketListener serverPlayPacketListener)
      Specified by:
      apply in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Liy;a(Lih;)V
      intermediary method_8013 Lnet/minecraft/class_2066;method_8013(Lnet/minecraft/class_2050;)V
      named apply Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
    • getPos

      public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official a Liy;a()Lcl;
      intermediary method_10724 Lnet/minecraft/class_2066;method_10724()Lnet/minecraft/class_2552;
      named getPos Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;getPos()Lnet/minecraft/util/math/BlockPos;
    • getDirection

      public Direction getDirection()
      Mappings:
      Namespace Name Mixin selector
      official b Liy;b()Lcs;
      intermediary method_10725 Lnet/minecraft/class_2066;method_10725()Lnet/minecraft/class_1354;
      named getDirection Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;getDirection()Lnet/minecraft/util/math/Direction;
    • getAction

      public PlayerActionC2SPacket.Action getAction()
      Mappings:
      Namespace Name Mixin selector
      official c Liy;c()Liy$a;
      intermediary method_10726 Lnet/minecraft/class_2066;method_10726()Lnet/minecraft/class_2066$class_2589;
      named getAction Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;getAction()Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;