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 yo
intermediary net/minecraft/class_2846
named net/minecraft/network/packet/c2s/play/PlayerActionC2SPacket
  • Field Details

    • pos

      private final BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official a Lyo;a:Lgt;
      intermediary field_12967 Lnet/minecraft/class_2846;field_12967:Lnet/minecraft/class_2338;
      named pos Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;pos:Lnet/minecraft/util/math/BlockPos;
    • direction

      private final Direction direction
      Mappings:
      Namespace Name Mixin selector
      official b Lyo;b:Lgy;
      intermediary field_12965 Lnet/minecraft/class_2846;field_12965:Lnet/minecraft/class_2350;
      named direction Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;direction:Lnet/minecraft/util/math/Direction;
    • action

      private final PlayerActionC2SPacket.Action action
      Mappings:
      Namespace Name Mixin selector
      official c Lyo;c:Lyo$a;
      intermediary field_12966 Lnet/minecraft/class_2846;field_12966:Lnet/minecraft/class_2846$class_2847;
      named action Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;action:Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;
    • sequence

      private final int sequence
      Mappings:
      Namespace Name Mixin selector
      official d Lyo;d:I
      intermediary field_38048 Lnet/minecraft/class_2846;field_38048:I
      named sequence Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;sequence:I
  • Constructor Details

    • PlayerActionC2SPacket

      public PlayerActionC2SPacket(PlayerActionC2SPacket.Action action, BlockPos pos, Direction direction, int sequence)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lyo;<init>(Lyo$a;Lgt;Lgy;I)V
      intermediary <init> Lnet/minecraft/class_2846;<init>(Lnet/minecraft/class_2846$class_2847;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;I)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;I)V
    • PlayerActionC2SPacket

      public PlayerActionC2SPacket(PlayerActionC2SPacket.Action action, BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lyo;<init>(Lyo$a;Lgt;Lgy;)V
      intermediary <init> Lnet/minecraft/class_2846;<init>(Lnet/minecraft/class_2846$class_2847;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)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
    • PlayerActionC2SPacket

      public PlayerActionC2SPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lyo;<init>(Lqx;)V
      intermediary <init> Lnet/minecraft/class_2846;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;<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 Ltc;a(Lqx;)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
    • apply

      public void apply(ServerPlayPacketListener serverPlayPacketListener)
      Specified by:
      apply in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lyo;a(Lxm;)V
      intermediary method_12361 Lnet/minecraft/class_2846;method_12361(Lnet/minecraft/class_2792;)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 b Lyo;b()Lgt;
      intermediary method_12362 Lnet/minecraft/class_2846;method_12362()Lnet/minecraft/class_2338;
      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 c Lyo;c()Lgy;
      intermediary method_12360 Lnet/minecraft/class_2846;method_12360()Lnet/minecraft/class_2350;
      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 d Lyo;d()Lyo$a;
      intermediary method_12363 Lnet/minecraft/class_2846;method_12363()Lnet/minecraft/class_2846$class_2847;
      named getAction Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;getAction()Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket$Action;
    • getSequence

      public int getSequence()
      Mappings:
      Namespace Name Mixin selector
      official e Lyo;e()I
      intermediary method_42079 Lnet/minecraft/class_2846;method_42079()I
      named getSequence Lnet/minecraft/network/packet/c2s/play/PlayerActionC2SPacket;getSequence()I