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
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlayerInteractEntityC2SPacket.InteractionType
-
Field Summary
Fields Modifier and Type Field Description private int
entityId
private Hand
hand
private Vec3d
hitPos
private boolean
playerSneaking
private PlayerInteractEntityC2SPacket.InteractionType
type
-
Constructor Summary
Constructors Constructor Description PlayerInteractEntityC2SPacket()
PlayerInteractEntityC2SPacket(Entity target, boolean playerSneaking)
PlayerInteractEntityC2SPacket(Entity entity, Hand hand, boolean playerSneaking)
PlayerInteractEntityC2SPacket(Entity entity, Hand hand, Vec3d hitPos, boolean playerSneaking)
-
Method Summary
Modifier and Type Method Description void
apply(ServerPlayPacketListener serverPlayPacketListener)
Entity
getEntity(ServerWorld serverWorld)
Hand
getHand()
Vec3d
getHitPosition()
PlayerInteractEntityC2SPacket.InteractionType
getType()
boolean
isPlayerSneaking()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
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
- 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
- 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
- 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
- Specified by:
read
in interfacePacket<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
- Specified by:
write
in interfacePacket<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
- Specified by:
apply
in interfacePacket<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
- 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
- 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
- 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
-