public class LookAtS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Field and 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 and Description |
|---|
LookAtS2CPacket() |
LookAtS2CPacket(EntityAnchorArgumentType.EntityAnchor entityAnchor,
double targetX,
double targetY,
double targetZ) |
LookAtS2CPacket(EntityAnchorArgumentType.EntityAnchor selfAnchor,
Entity entity,
EntityAnchorArgumentType.EntityAnchor targetAnchor) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
EntityAnchorArgumentType.EntityAnchor |
getSelfAnchor() |
Vec3d |
getTargetPosition(World world) |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate double targetX
private double targetY
private double targetZ
private int entityId
private EntityAnchorArgumentType.EntityAnchor selfAnchor
private EntityAnchorArgumentType.EntityAnchor targetAnchor
private boolean lookAtEntity
public LookAtS2CPacket()
public LookAtS2CPacket(EntityAnchorArgumentType.EntityAnchor entityAnchor, double targetX, double targetY, double targetZ)
public LookAtS2CPacket(EntityAnchorArgumentType.EntityAnchor selfAnchor, Entity entity, EntityAnchorArgumentType.EntityAnchor targetAnchor)
public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionpublic void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOExceptionpublic void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>@Environment(value=CLIENT) public EntityAnchorArgumentType.EntityAnchor getSelfAnchor()