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 inintermediary net/minecraft/class_1561named net/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlayerInteractEntityC2SPacket.Type -
Field Summary
Fields Modifier and Type Field Description private intentityIdprivate Vec3dhitPositionprivate PlayerInteractEntityC2SPacket.Typetype -
Constructor Summary
Constructors Constructor Description PlayerInteractEntityC2SPacket()PlayerInteractEntityC2SPacket(Entity entity, PlayerInteractEntityC2SPacket.Type type)PlayerInteractEntityC2SPacket(Entity entity, Vec3d hitPosition) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)EntitygetEntity(World world)Vec3dgetHitPosition()PlayerInteractEntityC2SPacket.TypegetType()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
entityId
private int entityId- Mappings:
Namespace Name Mixin selector official aLin;a:Iintermediary field_6405Lnet/minecraft/class_1561;field_6405:Inamed entityIdLnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;entityId:I
-
type
- Mappings:
Namespace Name Mixin selector official bLin;b:Lin$a;intermediary field_6406Lnet/minecraft/class_1561;field_6406:Lnet/minecraft/class_1561$class_1562;named typeLnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;type:Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket$Type;
-
hitPosition
- Mappings:
Namespace Name Mixin selector official cLin;c:Laui;intermediary field_6407Lnet/minecraft/class_1561;field_6407:Lnet/minecraft/class_649;named hitPositionLnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;hitPosition:Lnet/minecraft/util/math/Vec3d;
-
-
Constructor Details
-
PlayerInteractEntityC2SPacket
public PlayerInteractEntityC2SPacket() -
PlayerInteractEntityC2SPacket
@Environment(CLIENT) public PlayerInteractEntityC2SPacket(Entity entity, PlayerInteractEntityC2SPacket.Type type)- Mappings:
Namespace Name Mixin selector official <init>Lin;<init>(Lpk;Lin$a;)Vintermediary <init>Lnet/minecraft/class_1561;<init>(Lnet/minecraft/class_1745;Lnet/minecraft/class_1561$class_1562;)Vnamed <init>Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;<init>(Lnet/minecraft/entity/Entity;Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket$Type;)V
-
PlayerInteractEntityC2SPacket
- Mappings:
Namespace Name Mixin selector official <init>Lin;<init>(Lpk;Laui;)Vintermediary <init>Lnet/minecraft/class_1561;<init>(Lnet/minecraft/class_1745;Lnet/minecraft/class_649;)Vnamed <init>Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;<init>(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)V
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLff;a(Lem;)Vintermediary method_5238Lnet/minecraft/class_1457;method_5238(Lnet/minecraft/class_1435;)Vnamed readLnet/minecraft/network/Packet;read(Lnet/minecraft/util/PacketByteBuf;)V
-
write
- Specified by:
writein interfacePacket<ServerPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLff;b(Lem;)Vintermediary method_5240Lnet/minecraft/class_1457;method_5240(Lnet/minecraft/class_1435;)Vnamed writeLnet/minecraft/network/Packet;write(Lnet/minecraft/util/PacketByteBuf;)V
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLin;a(Lic;)Vintermediary method_5766Lnet/minecraft/class_1561;method_5766(Lnet/minecraft/class_1550;)Vnamed applyLnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
-
getEntity
- Mappings:
Namespace Name Mixin selector official aLin;a(Ladm;)Lpk;intermediary method_5765Lnet/minecraft/class_1561;method_5765(Lnet/minecraft/class_99;)Lnet/minecraft/class_1745;named getEntityLnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;getEntity(Lnet/minecraft/world/World;)Lnet/minecraft/entity/Entity;
-
getType
- Mappings:
Namespace Name Mixin selector official aLin;a()Lin$a;intermediary method_5764Lnet/minecraft/class_1561;method_5764()Lnet/minecraft/class_1561$class_1562;named getTypeLnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;getType()Lnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket$Type;
-
getHitPosition
- Mappings:
Namespace Name Mixin selector official bLin;b()Laui;intermediary method_5767Lnet/minecraft/class_1561;method_5767()Lnet/minecraft/class_649;named getHitPositionLnet/minecraft/network/packet/c2s/play/PlayerInteractEntityC2SPacket;getHitPosition()Lnet/minecraft/util/math/Vec3d;
-