[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/prismarine](https://jsprismarine.dev/api/@jsprismarine/prismarine/index.md) / world/ShownPlayer

# world/ShownPlayer

## Interfaces

### ShownPlayer

Defined in: [packages/prismarine/src/world/ShownPlayer.ts:18](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownPlayer.ts#L18)

One player as the network layer shows it to other clients.

#### Extends

- [`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor)

#### Properties

##### attributes

> `readonly` **attributes**: `Attributes`

Defined in: [packages/prismarine/src/world/ShownActor.ts:44](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L44)

The attributes a client is sent.

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`attributes`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#attributes)

##### device

> `readonly` **device**: [`Device`](https://jsprismarine.dev/api/@jsprismarine/prismarine/utils/Device/classes/Device.md) \| `null`

Defined in: [packages/prismarine/src/world/ShownPlayer.ts:26](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownPlayer.ts#L26)

The device the client logged in from, or null when it said nothing.

##### gamemode

> `readonly` **gamemode**: [`Gametype`](https://jsprismarine.dev/api/@jsprismarine/minecraft/index.md#gametype)

Defined in: [packages/prismarine/src/world/ShownPlayer.ts:28](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownPlayer.ts#L28)

##### headYaw

> `readonly` **headYaw**: `number`

Defined in: [packages/prismarine/src/world/ShownActor.ts:39](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L39)

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`headYaw`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#headyaw)

##### metadata

> `readonly` **metadata**: [`Metadata`](https://jsprismarine.dev/api/@jsprismarine/protocol/classes/Metadata.md)

Defined in: [packages/prismarine/src/world/ShownActor.ts:41](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L41)

The actor metadata a client is sent, flags and properties both.

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`metadata`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#metadata)

##### pitch

> `readonly` **pitch**: `number`

Defined in: [packages/prismarine/src/world/ShownActor.ts:37](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L37)

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`pitch`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#pitch)

##### platformChatId

> `readonly` **platformChatId**: `string`

Defined in: [packages/prismarine/src/world/ShownPlayer.ts:24](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownPlayer.ts#L24)

##### skin

> `readonly` **skin**: [`Skin`](https://jsprismarine.dev/api/@jsprismarine/protocol/classes/Skin.md) \| `null`

Defined in: [packages/prismarine/src/world/ShownPlayer.ts:27](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownPlayer.ts#L27)

##### xuid

> `readonly` **xuid**: `string`

Defined in: [packages/prismarine/src/world/ShownPlayer.ts:23](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownPlayer.ts#L23)

##### yaw

> `readonly` **yaw**: `number`

Defined in: [packages/prismarine/src/world/ShownActor.ts:38](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L38)

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`yaw`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#yaw)

#### Methods

##### getCommandLevel()

> **getCommandLevel**(): [`CommandPermissionLevel`](https://jsprismarine.dev/api/@jsprismarine/minecraft/index.md#commandpermissionlevel)

Defined in: [packages/prismarine/src/world/ShownPlayer.ts:32](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownPlayer.ts#L32)

The command level the player runs at, which sets the command permission other clients see.

###### Returns

[`CommandPermissionLevel`](https://jsprismarine.dev/api/@jsprismarine/minecraft/index.md#commandpermissionlevel)

##### getEquipment()

> **getEquipment**(): [`ViewableEquipment`](https://jsprismarine.dev/api/@jsprismarine/prismarine/entity/predicateView/index.md#viewableequipment)

Defined in: [packages/prismarine/src/world/ShownActor.ts:45](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L45)

###### Returns

[`ViewableEquipment`](https://jsprismarine.dev/api/@jsprismarine/prismarine/entity/predicateView/index.md#viewableequipment)

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`getEquipment`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#getequipment)

##### getName()

> **getName**(): `string`

Defined in: [packages/prismarine/src/world/ShownPlayer.ts:22](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownPlayer.ts#L22)

The name other clients see over the player's head and in the player list.

###### Returns

`string`

##### getPosition()

> **getPosition**(): [`Vector3`](https://jsprismarine.dev/api/@jsprismarine/math/classes/Vector3.md)

Defined in: [packages/prismarine/src/world/ShownActor.ts:35](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L35)

###### Returns

[`Vector3`](https://jsprismarine.dev/api/@jsprismarine/math/classes/Vector3.md)

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`getPosition`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#getposition)

##### getRuntimeId()

> **getRuntimeId**(): `bigint`

Defined in: [packages/prismarine/src/world/ShownActor.ts:33](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L33)

###### Returns

`bigint`

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`getRuntimeId`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#getruntimeid)

##### getStatusEffects()

> **getStatusEffects**(): readonly [`StatusEffect`](https://jsprismarine.dev/api/@jsprismarine/prismarine/entity/StatusEffect/index.md#statuseffect)[]

Defined in: [packages/prismarine/src/world/ShownActor.ts:46](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L46)

###### Returns

readonly [`StatusEffect`](https://jsprismarine.dev/api/@jsprismarine/prismarine/entity/StatusEffect/index.md#statuseffect)[]

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`getStatusEffects`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#getstatuseffects)

##### getSyncedProperties()

> **getSyncedProperties**(): [`SyncedProperties`](https://jsprismarine.dev/api/@jsprismarine/protocol/classes/SyncedProperties.md)

Defined in: [packages/prismarine/src/world/ShownActor.ts:42](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L42)

###### Returns

[`SyncedProperties`](https://jsprismarine.dev/api/@jsprismarine/protocol/classes/SyncedProperties.md)

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`getSyncedProperties`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#getsyncedproperties)

##### getType()

> **getType**(): `string`

Defined in: [packages/prismarine/src/world/ShownActor.ts:34](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L34)

###### Returns

`string`

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`getType`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#gettype)

##### getUUID()

> **getUUID**(): [`UUIDValue`](https://jsprismarine.dev/api/@jsprismarine/protocol/classes/UUIDValue.md)

Defined in: [packages/prismarine/src/world/ShownPlayer.ts:20](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownPlayer.ts#L20)

The identity the client logged in with.

###### Returns

[`UUIDValue`](https://jsprismarine.dev/api/@jsprismarine/protocol/classes/UUIDValue.md)

##### getVelocity()

> **getVelocity**(): [`Vector3`](https://jsprismarine.dev/api/@jsprismarine/math/classes/Vector3.md)

Defined in: [packages/prismarine/src/world/ShownActor.ts:36](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L36)

###### Returns

[`Vector3`](https://jsprismarine.dev/api/@jsprismarine/math/classes/Vector3.md)

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`getVelocity`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#getvelocity)

##### isFlying()

> **isFlying**(): `boolean`

Defined in: [packages/prismarine/src/world/ShownPlayer.ts:33](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownPlayer.ts#L33)

###### Returns

`boolean`

##### isOnGround()

> **isOnGround**(): `boolean`

Defined in: [packages/prismarine/src/world/ShownActor.ts:47](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownActor.ts#L47)

###### Returns

`boolean`

###### Inherited from

[`ShownActor`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#shownactor).[`isOnGround`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/ShownActor/index.md#isonground)

##### isOp()

> **isOp**(): `boolean`

Defined in: [packages/prismarine/src/world/ShownPlayer.ts:30](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/ShownPlayer.ts#L30)

Whether the player is an operator, which sets the permissions other clients see.

###### Returns

`boolean`
