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

# entity/storePlayer

## Classes

- [StorePlayer](https://jsprismarine.dev/api/@jsprismarine/prismarine/entity/storePlayer/classes/StorePlayer.md)

## Interfaces

### HeldEntity

Defined in: [packages/prismarine/src/entity/storePlayer.ts:73](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L73)

What a store player keeps of its entity while it is in no store.

#### Properties

##### actorTags?

> `readonly` `optional` **actorTags?**: `Uint8Array`\<`ArrayBufferLike`\>

Defined in: [packages/prismarine/src/entity/storePlayer.ts:90](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L90)

The actor record tags this server does not model, as network NBT bytes, which a script's
dynamic properties live in. Carried from a store to the next, and from a saved record to the
first store.

##### pitch

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

Defined in: [packages/prismarine/src/entity/storePlayer.ts:77](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L77)

##### position

> `readonly` **position**: [`EntityPosition`](https://jsprismarine.dev/api/@jsprismarine/entities/index.md#entityposition)

Defined in: [packages/prismarine/src/entity/storePlayer.ts:75](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L75)

Where the feet are.

##### record

> `readonly` **record**: [`DataEntityRecord`](https://jsprismarine.dev/api/@jsprismarine/prismarine/entity/data/persistence/index.md#dataentityrecord) \| `undefined`

Defined in: [packages/prismarine/src/entity/storePlayer.ts:82](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L82)

The entity as it left its last store, which the next store restores, or undefined before
its first entry, when the next store spawns it.

##### statusEffects

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

Defined in: [packages/prismarine/src/entity/storePlayer.ts:84](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L84)

##### tags

> `readonly` **tags**: readonly `string`[]

Defined in: [packages/prismarine/src/entity/storePlayer.ts:83](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L83)

##### yaw

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

Defined in: [packages/prismarine/src/entity/storePlayer.ts:76](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L76)

***

### StorePlayerIdentity

Defined in: [packages/prismarine/src/entity/storePlayer.ts:63](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L63)

Who a store player is, as the login named them.

#### Properties

##### name

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

Defined in: [packages/prismarine/src/entity/storePlayer.ts:65](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L65)

##### subject

> `readonly` **subject**: [`Subject`](https://jsprismarine.dev/api/@jsprismarine/prismarine/identity/Subject/index.md#subject)

Defined in: [packages/prismarine/src/entity/storePlayer.ts:69](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L69)

Who the player is to the permission files: see [Subject](https://jsprismarine.dev/api/@jsprismarine/prismarine/identity/Subject/index.md#subject).

##### uuid

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

Defined in: [packages/prismarine/src/entity/storePlayer.ts:64](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L64)

##### xuid

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

Defined in: [packages/prismarine/src/entity/storePlayer.ts:67](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L67)

The Xbox Live id, or an empty string when the login carried none.

## Type Aliases

### SlotWatcher

> **SlotWatcher** = (`container`, `slot`, `before`, `after`) => `void`

Defined in: [packages/prismarine/src/entity/storePlayer.ts:60](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/entity/storePlayer.ts#L60)

Hears one write to a slot of a store player's inventory; see [StorePlayer.watchSlots](https://jsprismarine.dev/api/@jsprismarine/prismarine/entity/storePlayer/classes/StorePlayer.md#watchslots).

#### Parameters

##### container

[`InventoryContainer`](https://jsprismarine.dev/api/@jsprismarine/prismarine/inventory/EntityInventory/index.md#inventorycontainer)

##### slot

`number`

##### before

[`SlotValue`](https://jsprismarine.dev/api/@jsprismarine/prismarine/inventory/slotLog/index.md#slotvalue)

##### after

[`SlotValue`](https://jsprismarine.dev/api/@jsprismarine/prismarine/inventory/slotLog/index.md#slotvalue)

#### Returns

`void`
