net.minecraft.network.packet.s2c.play

public class LookAtS2CPacket

implements Packet<ClientPlayPacketListener>

net.minecraft.network.protocol.game.ClientboundPlayerLookAtPacket
net.minecraft.class_2707
net.minecraft.network.packet.s2c.play.LookAtS2CPacket

Field summary

Modifier and TypeField
public static final PacketCodec<PacketByteBuf, LookAtS2CPacket>
STREAM_CODEC
field_47956
CODEC
private final double
x
field_12386
targetX
private final double
y
field_12384
targetY
private final double
z
field_12383
targetZ
private final int
entity
field_12388
entityId
private final EntityAnchorArgumentType$EntityAnchor
fromAnchor
field_12385
selfAnchor
private final EntityAnchorArgumentType$EntityAnchor
toAnchor
field_12389
targetAnchor
private final boolean
atEntity
field_12387
lookAtEntity

Constructor summary

ModifierConstructor
public (EntityAnchorArgumentType$EntityAnchor selfAnchor, double targetX, double targetY, double targetZ)
public (EntityAnchorArgumentType$EntityAnchor selfAnchor, Entity entity, EntityAnchorArgumentType$EntityAnchor targetAnchor)
private (PacketByteBuf buf)

Method summary

Modifier and TypeMethod
private void
write(FriendlyByteBuf output)
method_55903(class_2540 arg0)
write(PacketByteBuf buf)
public PacketType<LookAtS2CPacket>
type()
method_65080()
getPacketType()
public void
handle(ClientGamePacketListener listener)
method_11731(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public EntityAnchorArgumentType$EntityAnchor
getFromAnchor()
method_11730()
getSelfAnchor()
public Vec3d
getPosition(Level level)
method_11732(class_1937 arg0)
getTargetPosition(World world)
public void
handle(PacketListener listener)
method_65081(class_2547 arg0)
apply(PacketListener arg0)