Class PlayerInteractionC2SPacket

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

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

    • pos

      private BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official a Lir;a:Lcj;
      intermediary field_6427 Lnet/minecraft/class_1569;field_6427:Lnet/minecraft/class_1372;
      named pos Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;pos:Lnet/minecraft/util/math/BlockPos;
    • direction

      private Direction direction
      Mappings:
      Namespace Name Mixin selector
      official b Lir;b:Lcq;
      intermediary field_6428 Lnet/minecraft/class_1569;field_6428:Lnet/minecraft/class_1383;
      named direction Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;direction:Lnet/minecraft/util/math/Direction;
    • action

      Mappings:
      Namespace Name Mixin selector
      official c Lir;c:Lir$a;
      intermediary field_6429 Lnet/minecraft/class_1569;field_6429:Lnet/minecraft/class_1569$class_1570;
      named action Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;action:Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket$Action;
  • Constructor Details

    • PlayerInteractionC2SPacket

      public PlayerInteractionC2SPacket()
    • PlayerInteractionC2SPacket

      @Environment(CLIENT) public PlayerInteractionC2SPacket​(PlayerInteractionC2SPacket.Action action, BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lir;<init>(Lir$a;Lcj;Lcq;)V
      intermediary <init> Lnet/minecraft/class_1569;<init>(Lnet/minecraft/class_1569$class_1570;Lnet/minecraft/class_1372;Lnet/minecraft/class_1383;)V
      named <init> Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;<init>(Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket$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 Lff;a(Lem;)V
      intermediary method_5238 Lnet/minecraft/class_1457;method_5238(Lnet/minecraft/class_1435;)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 Lff;b(Lem;)V
      intermediary method_5240 Lnet/minecraft/class_1457;method_5240(Lnet/minecraft/class_1435;)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 Lir;a(Lic;)V
      intermediary method_5792 Lnet/minecraft/class_1569;method_5792(Lnet/minecraft/class_1550;)V
      named apply Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
    • getPos

      public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official a Lir;a()Lcj;
      intermediary method_5791 Lnet/minecraft/class_1569;method_5791()Lnet/minecraft/class_1372;
      named getPos Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;getPos()Lnet/minecraft/util/math/BlockPos;
    • getDirection

      public Direction getDirection()
      Mappings:
      Namespace Name Mixin selector
      official b Lir;b()Lcq;
      intermediary method_5793 Lnet/minecraft/class_1569;method_5793()Lnet/minecraft/class_1383;
      named getDirection Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;getDirection()Lnet/minecraft/util/math/Direction;
    • getAction

      Mappings:
      Namespace Name Mixin selector
      official c Lir;c()Lir$a;
      intermediary method_5794 Lnet/minecraft/class_1569;method_5794()Lnet/minecraft/class_1569$class_1570;
      named getAction Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket;getAction()Lnet/minecraft/network/packet/c2s/play/PlayerInteractionC2SPacket$Action;