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 th
intermediary net/minecraft/class_2824
named net/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket
  • Field Details

    • entityId

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

      Mappings:
      Namespace Name Mixin selector
      official b Lth;b:Lth$a;
      intermediary field_12871 Lnet/minecraft/class_2824;field_12871:Lnet/minecraft/class_2824$class_2825;
      named type Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;type:Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket$InteractionType;
    • hitPos

      private Vec3d hitPos
      Mappings:
      Namespace Name Mixin selector
      official c Lth;c:Ldiu;
      intermediary field_12872 Lnet/minecraft/class_2824;field_12872:Lnet/minecraft/class_243;
      named hitPos Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;hitPos:Lnet/minecraft/util/math/Vec3d;
    • hand

      private Hand hand
      Mappings:
      Namespace Name Mixin selector
      official d Lth;d:Lapp;
      intermediary field_12869 Lnet/minecraft/class_2824;field_12869:Lnet/minecraft/class_1268;
      named hand Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;hand:Lnet/minecraft/util/Hand;
    • playerSneaking

      private boolean playerSneaking
      Mappings:
      Namespace Name Mixin selector
      official e Lth;e:Z
      intermediary field_25660 Lnet/minecraft/class_2824;field_25660:Z
      named playerSneaking Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;playerSneaking:Z
  • Constructor Details

    • PlayerInteractEntityC2SPacket

      public PlayerInteractEntityC2SPacket()
    • PlayerInteractEntityC2SPacket

      @Environment(CLIENT) public PlayerInteractEntityC2SPacket​(Entity target, boolean playerSneaking)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lth;<init>(Laqv;Z)V
      intermediary <init> Lnet/minecraft/class_2824;<init>(Lnet/minecraft/class_1297;Z)V
      named <init> Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;<init>(Lnet/minecraft/entity/Entity;Z)V
    • PlayerInteractEntityC2SPacket

      @Environment(CLIENT) public PlayerInteractEntityC2SPacket​(Entity entity, Hand hand, boolean playerSneaking)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lth;<init>(Laqv;Lapp;Z)V
      intermediary <init> Lnet/minecraft/class_2824;<init>(Lnet/minecraft/class_1297;Lnet/minecraft/class_1268;Z)V
      named <init> Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;<init>(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/Hand;Z)V
    • PlayerInteractEntityC2SPacket

      @Environment(CLIENT) public PlayerInteractEntityC2SPacket​(Entity entity, Hand hand, Vec3d hitPos, boolean playerSneaking)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lth;<init>(Laqv;Lapp;Ldiu;Z)V
      intermediary <init> Lnet/minecraft/class_2824;<init>(Lnet/minecraft/class_1297;Lnet/minecraft/class_1268;Lnet/minecraft/class_243;Z)V
      named <init> Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;<init>(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/math/Vec3d;Z)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 Lpa;a(Lnw;)V
      intermediary method_11053 Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/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 Lpa;b(Lnw;)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 Lth;a(Lss;)V
      intermediary method_12251 Lnet/minecraft/class_2824;method_12251(Lnet/minecraft/class_2792;)V
      named apply Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
    • getEntity

      @Nullable public Entity getEntity​(ServerWorld serverWorld)
      Mappings:
      Namespace Name Mixin selector
      official a Lth;a(Laav;)Laqv;
      intermediary method_12248 Lnet/minecraft/class_2824;method_12248(Lnet/minecraft/class_3218;)Lnet/minecraft/class_1297;
      named getEntity Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;getEntity(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/entity/Entity;
    • getType

      Mappings:
      Namespace Name Mixin selector
      official b Lth;b()Lth$a;
      intermediary method_12252 Lnet/minecraft/class_2824;method_12252()Lnet/minecraft/class_2824$class_2825;
      named getType Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;getType()Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket$InteractionType;
    • getHand

      @Nullable public Hand getHand()
      Mappings:
      Namespace Name Mixin selector
      official c Lth;c()Lapp;
      intermediary method_12249 Lnet/minecraft/class_2824;method_12249()Lnet/minecraft/class_1268;
      named getHand Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;getHand()Lnet/minecraft/util/Hand;
    • getHitPosition

      public Vec3d getHitPosition()
      Mappings:
      Namespace Name Mixin selector
      official d Lth;d()Ldiu;
      intermediary method_12250 Lnet/minecraft/class_2824;method_12250()Lnet/minecraft/class_243;
      named getHitPosition Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;getHitPosition()Lnet/minecraft/util/math/Vec3d;
    • isPlayerSneaking

      public boolean isPlayerSneaking()
      Mappings:
      Namespace Name Mixin selector
      official e Lth;e()Z
      intermediary method_30007 Lnet/minecraft/class_2824;method_30007()Z
      named isPlayerSneaking Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;isPlayerSneaking()Z