Class LookAtS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.LookAtS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class LookAtS2CPacket extends Object implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official rb
intermediary net/minecraft/class_2707
named net/minecraft/network/packet/s2c/play/LookAtS2CPacket
-
Field Summary
Fields Modifier and Type Field Description private int
entityId
private boolean
lookAtEntity
private EntityAnchorArgumentType.EntityAnchor
selfAnchor
private EntityAnchorArgumentType.EntityAnchor
targetAnchor
private double
targetX
private double
targetY
private double
targetZ
-
Constructor Summary
Constructors Constructor Description LookAtS2CPacket()
LookAtS2CPacket(EntityAnchorArgumentType.EntityAnchor entityAnchor, double targetX, double targetY, double targetZ)
LookAtS2CPacket(EntityAnchorArgumentType.EntityAnchor selfAnchor, Entity entity, EntityAnchorArgumentType.EntityAnchor targetAnchor)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
EntityAnchorArgumentType.EntityAnchor
getSelfAnchor()
Vec3d
getTargetPosition(World world)
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
-
targetX
private double targetX- Mappings:
Namespace Name Mixin selector official a
Lrb;a:D
intermediary field_12386
Lnet/minecraft/class_2707;field_12386:D
named targetX
Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;targetX:D
-
targetY
private double targetY- Mappings:
Namespace Name Mixin selector official b
Lrb;b:D
intermediary field_12384
Lnet/minecraft/class_2707;field_12384:D
named targetY
Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;targetY:D
-
targetZ
private double targetZ- Mappings:
Namespace Name Mixin selector official c
Lrb;c:D
intermediary field_12383
Lnet/minecraft/class_2707;field_12383:D
named targetZ
Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;targetZ:D
-
entityId
private int entityId- Mappings:
Namespace Name Mixin selector official d
Lrb;d:I
intermediary field_12388
Lnet/minecraft/class_2707;field_12388:I
named entityId
Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;entityId:I
-
selfAnchor
- Mappings:
Namespace Name Mixin selector official e
Lrb;e:Ldj$a;
intermediary field_12385
Lnet/minecraft/class_2707;field_12385:Lnet/minecraft/class_2183$class_2184;
named selfAnchor
Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;selfAnchor:Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
-
targetAnchor
- Mappings:
Namespace Name Mixin selector official f
Lrb;f:Ldj$a;
intermediary field_12389
Lnet/minecraft/class_2707;field_12389:Lnet/minecraft/class_2183$class_2184;
named targetAnchor
Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;targetAnchor:Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
-
lookAtEntity
private boolean lookAtEntity- Mappings:
Namespace Name Mixin selector official g
Lrb;g:Z
intermediary field_12387
Lnet/minecraft/class_2707;field_12387:Z
named lookAtEntity
Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;lookAtEntity:Z
-
-
Constructor Details
-
LookAtS2CPacket
public LookAtS2CPacket() -
LookAtS2CPacket
public LookAtS2CPacket(EntityAnchorArgumentType.EntityAnchor entityAnchor, double targetX, double targetY, double targetZ)- Mappings:
Namespace Name Mixin selector official <init>
Lrb;<init>(Ldj$a;DDD)V
intermediary <init>
Lnet/minecraft/class_2707;<init>(Lnet/minecraft/class_2183$class_2184;DDD)V
named <init>
Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;<init>(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;DDD)V
-
LookAtS2CPacket
public LookAtS2CPacket(EntityAnchorArgumentType.EntityAnchor selfAnchor, Entity entity, EntityAnchorArgumentType.EntityAnchor targetAnchor)- Mappings:
Namespace Name Mixin selector official <init>
Lrb;<init>(Ldj$a;Laqv;Ldj$a;)V
intermediary <init>
Lnet/minecraft/class_2707;<init>(Lnet/minecraft/class_2183$class_2184;Lnet/minecraft/class_1297;Lnet/minecraft/class_2183$class_2184;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;<init>(Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;Lnet/minecraft/entity/Entity;Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;)V
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- 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<ClientPlayPacketListener>
- 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<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lrb;a(Lpd;)V
intermediary method_11731
Lnet/minecraft/class_2707;method_11731(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
getSelfAnchor
- Mappings:
Namespace Name Mixin selector official b
Lrb;b()Ldj$a;
intermediary method_11730
Lnet/minecraft/class_2707;method_11730()Lnet/minecraft/class_2183$class_2184;
named getSelfAnchor
Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;getSelfAnchor()Lnet/minecraft/command/argument/EntityAnchorArgumentType$EntityAnchor;
-
getTargetPosition
- Mappings:
Namespace Name Mixin selector official a
Lrb;a(Lbtv;)Ldiu;
intermediary method_11732
Lnet/minecraft/class_2707;method_11732(Lnet/minecraft/class_1937;)Lnet/minecraft/class_243;
named getTargetPosition
Lnet/minecraft/network/packet/s2c/play/LookAtS2CPacket;getTargetPosition(Lnet/minecraft/world/World;)Lnet/minecraft/util/math/Vec3d;
-