Class PlayerInteractEntityC2SPacket

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

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

    • entityId

      private int entityId
      Mappings:
      Namespace Name Mixin selector
      official a Lli;a:I
      intermediary field_8788 Lnet/minecraft/class_2061;field_8788:I
      named entityId Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;entityId:I
    • type

      Mappings:
      Namespace Name Mixin selector
      official b Lli;b:Lli$a;
      intermediary field_8789 Lnet/minecraft/class_2061;field_8789:Lnet/minecraft/class_2061$class_2062;
      named type Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;type:Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket$Type;
    • hitPosition

      private Vec3d hitPosition
      Mappings:
      Namespace Name Mixin selector
      official c Lli;c:Lbhe;
      intermediary field_11703 Lnet/minecraft/class_2061;field_11703:Lnet/minecraft/class_236;
      named hitPosition Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;hitPosition:Lnet/minecraft/util/math/Vec3d;
    • field_13799

      private Hand field_13799
      Mappings:
      Namespace Name Mixin selector
      official d Lli;d:Lub;
      intermediary field_13799 Lnet/minecraft/class_2061;field_13799:Lnet/minecraft/class_2961;
      named field_13799 Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;field_13799:Lnet/minecraft/util/Hand;
  • Constructor Details

    • PlayerInteractEntityC2SPacket

      public PlayerInteractEntityC2SPacket()
    • PlayerInteractEntityC2SPacket

      public PlayerInteractEntityC2SPacket(Entity entity)
    • PlayerInteractEntityC2SPacket

      @Environment(CLIENT) public PlayerInteractEntityC2SPacket(Entity entity, Hand hand)
    • PlayerInteractEntityC2SPacket

      @Environment(CLIENT) public PlayerInteractEntityC2SPacket(Entity entity, Hand hand, Vec3d vec3d)
  • 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 Lht;a(Lgy;)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 Lht;b(Lgy;)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 Lli;a(Lkx;)V
      intermediary method_7983 Lnet/minecraft/class_2061;method_7983(Lnet/minecraft/class_2050;)V
      named apply Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
    • getEntity

      @Nullable public Entity getEntity(World world)
      Mappings:
      Namespace Name Mixin selector
      official a Lli;a(Lamu;)Lvg;
      intermediary method_7982 Lnet/minecraft/class_2061;method_7982(Lnet/minecraft/class_1150;)Lnet/minecraft/class_864;
      named getEntity Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;getEntity(Lnet/minecraft/world/World;)Lnet/minecraft/entity/Entity;
    • getType

      Mappings:
      Namespace Name Mixin selector
      official a Lli;a()Lli$a;
      intermediary method_7984 Lnet/minecraft/class_2061;method_7984()Lnet/minecraft/class_2061$class_2062;
      named getType Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;getType()Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket$Type;
    • method_12686

      public Hand method_12686()
      Mappings:
      Namespace Name Mixin selector
      official b Lli;b()Lub;
      intermediary method_12686 Lnet/minecraft/class_2061;method_12686()Lnet/minecraft/class_2961;
      named method_12686 Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;method_12686()Lnet/minecraft/util/Hand;
    • getHitPosition

      public Vec3d getHitPosition()
      Mappings:
      Namespace Name Mixin selector
      official c Lli;c()Lbhe;
      intermediary method_10723 Lnet/minecraft/class_2061;method_10723()Lnet/minecraft/class_236;
      named getHitPosition Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;getHitPosition()Lnet/minecraft/util/math/Vec3d;