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

    • ATTACK

      Mappings:
      Namespace Name Mixin selector
      official d Labv;d:Labv$a;
      intermediary field_29170 Lnet/minecraft/class_2824;field_29170:Lnet/minecraft/class_2824$class_5906;
      named ATTACK Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;ATTACK:Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket$InteractTypeHandler;
    • entityId

      private final int entityId
      Mappings:
      Namespace Name Mixin selector
      official a Labv;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 Labv;b:Labv$a;
      intermediary field_12871 Lnet/minecraft/class_2824;field_12871:Lnet/minecraft/class_2824$class_5906;
      named type Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;type:Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket$InteractTypeHandler;
    • playerSneaking

      private final boolean playerSneaking
      Mappings:
      Namespace Name Mixin selector
      official c Labv;c: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

      private PlayerInteractEntityC2SPacket(int entityId, boolean playerSneaking, PlayerInteractEntityC2SPacket.InteractTypeHandler type)
      Mappings:
      Namespace Name Mixin selector
      official <init> Labv;<init>(IZLabv$a;)V
      intermediary <init> Lnet/minecraft/class_2824;<init>(IZLnet/minecraft/class_2824$class_5906;)V
      named <init> Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;<init>(IZLnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket$InteractTypeHandler;)V
    • PlayerInteractEntityC2SPacket

      public PlayerInteractEntityC2SPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Labv;<init>(Lso;)V
      intermediary <init> Lnet/minecraft/class_2824;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • attack

      public static PlayerInteractEntityC2SPacket attack(Entity entity, boolean playerSneaking)
      Mappings:
      Namespace Name Mixin selector
      official a Labv;a(Lbiq;Z)Labv;
      intermediary method_34206 Lnet/minecraft/class_2824;method_34206(Lnet/minecraft/class_1297;Z)Lnet/minecraft/class_2824;
      named attack Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;attack(Lnet/minecraft/entity/Entity;Z)Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;
    • interact

      public static PlayerInteractEntityC2SPacket interact(Entity entity, boolean playerSneaking, Hand hand)
      Mappings:
      Namespace Name Mixin selector
      official a Labv;a(Lbiq;ZLbgx;)Labv;
      intermediary method_34207 Lnet/minecraft/class_2824;method_34207(Lnet/minecraft/class_1297;ZLnet/minecraft/class_1268;)Lnet/minecraft/class_2824;
      named interact Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;interact(Lnet/minecraft/entity/Entity;ZLnet/minecraft/util/Hand;)Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;
    • interactAt

      public static PlayerInteractEntityC2SPacket interactAt(Entity entity, boolean playerSneaking, Hand hand, Vec3d pos)
      Mappings:
      Namespace Name Mixin selector
      official a Labv;a(Lbiq;ZLbgx;Lehn;)Labv;
      intermediary method_34208 Lnet/minecraft/class_2824;method_34208(Lnet/minecraft/class_1297;ZLnet/minecraft/class_1268;Lnet/minecraft/class_243;)Lnet/minecraft/class_2824;
      named interactAt Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;interactAt(Lnet/minecraft/entity/Entity;ZLnet/minecraft/util/Hand;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;
    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lvd;a(Lso;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/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 Labv;a(Labc;)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 @Nullable Entity getEntity(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Labv;a(Lakq;)Lbiq;
      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;
    • isPlayerSneaking

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

      public void handle(PlayerInteractEntityC2SPacket.Handler handler)
      Mappings:
      Namespace Name Mixin selector
      official a Labv;a(Labv$c;)V
      intermediary method_34209 Lnet/minecraft/class_2824;method_34209(Lnet/minecraft/class_2824$class_5908;)V
      named handle Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;handle(Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket$Handler;)V