> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/newgen/api/net/minecraft/network/protocol/game/clientboundplayerlookatpacket.md).

# ClientboundPlayerLookAtPacket

Turns the local player towards a point or entity (the /tp facing command).

### Extends

* [`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md)

### Properties

#### atEntity

> `readonly` **atEntity**: `boolean`

Whether the target is an entity instead of a position.

***

#### entity

> `readonly` **entity**: [`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The target entity, null when the target is a position. Null if it is not loaded.

***

#### entityId

> `readonly` **entityId**: `number`

The target entity, -1 when the target is a position.

***

#### fromAnchor

> `readonly` **fromAnchor**: [`EntityAnchor`](/newgen/api/enum_types/entityanchor.md)

Which part of the player turns towards the target.

***

#### id

> `readonly` **id**: `string`

The protocol id, e.g. "minecraft:swing". Stable across versions, unlike class names.

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`id`](/newgen/api/net/minecraft/network/protocol/packet.md#id)

***

#### name

> `readonly` **name**: `string`

The class name, e.g. "ServerboundSwingPacket".

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`name`](/newgen/api/net/minecraft/network/protocol/packet.md#name)

***

#### position

> `readonly` **position**: [`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

The point looked at, resolved against the current entity position.

***

#### serverbound

> `readonly` **serverbound**: `boolean`

True for packets the client sends, false for ones it receives.

**Inherited from**

[`Packet`](/newgen/api/net/minecraft/network/protocol/packet.md).[`serverbound`](/newgen/api/net/minecraft/network/protocol/packet.md#serverbound)

***

#### toAnchor

> `readonly` **toAnchor**: [`EntityAnchor`](/newgen/api/enum_types/entityanchor.md)

Which part of the target entity is looked at. Only meaningful when atEntity is true.
