Skip to content

API reference / @jsprismarine/prismarine / world/ShownPlayer

world/ShownPlayer ​

Interfaces ​

ShownPlayer ​

Defined in: packages/prismarine/src/world/ShownPlayer.ts:18

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

Extends ​

Properties ​

attributes ​

readonly attributes: Attributes

Defined in: packages/prismarine/src/world/ShownActor.ts:44

The attributes a client is sent.

Inherited from ​

ShownActor.attributes

device ​

readonly device: Device | null

Defined in: packages/prismarine/src/world/ShownPlayer.ts:26

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

gamemode ​

readonly gamemode: Gametype

Defined in: packages/prismarine/src/world/ShownPlayer.ts:28

headYaw ​

readonly headYaw: number

Defined in: packages/prismarine/src/world/ShownActor.ts:39

Inherited from ​

ShownActor.headYaw

metadata ​

readonly metadata: Metadata

Defined in: packages/prismarine/src/world/ShownActor.ts:41

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

Inherited from ​

ShownActor.metadata

pitch ​

readonly pitch: number

Defined in: packages/prismarine/src/world/ShownActor.ts:37

Inherited from ​

ShownActor.pitch

platformChatId ​

readonly platformChatId: string

Defined in: packages/prismarine/src/world/ShownPlayer.ts:24

skin ​

readonly skin: Skin | null

Defined in: packages/prismarine/src/world/ShownPlayer.ts:27

xuid ​

readonly xuid: string

Defined in: packages/prismarine/src/world/ShownPlayer.ts:23

yaw ​

readonly yaw: number

Defined in: packages/prismarine/src/world/ShownActor.ts:38

Inherited from ​

ShownActor.yaw

Methods ​

getCommandLevel() ​

getCommandLevel(): CommandPermissionLevel

Defined in: packages/prismarine/src/world/ShownPlayer.ts:32

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

Returns ​

CommandPermissionLevel

getEquipment() ​

getEquipment(): ViewableEquipment

Defined in: packages/prismarine/src/world/ShownActor.ts:45

Returns ​

ViewableEquipment

Inherited from ​

ShownActor.getEquipment

getName() ​

getName(): string

Defined in: packages/prismarine/src/world/ShownPlayer.ts:22

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

Returns ​

string

getPosition() ​

getPosition(): Vector3

Defined in: packages/prismarine/src/world/ShownActor.ts:35

Returns ​

Vector3

Inherited from ​

ShownActor.getPosition

getRuntimeId() ​

getRuntimeId(): bigint

Defined in: packages/prismarine/src/world/ShownActor.ts:33

Returns ​

bigint

Inherited from ​

ShownActor.getRuntimeId

getStatusEffects() ​

getStatusEffects(): readonly StatusEffect[]

Defined in: packages/prismarine/src/world/ShownActor.ts:46

Returns ​

readonly StatusEffect[]

Inherited from ​

ShownActor.getStatusEffects

getSyncedProperties() ​

getSyncedProperties(): SyncedProperties

Defined in: packages/prismarine/src/world/ShownActor.ts:42

Returns ​

SyncedProperties

Inherited from ​

ShownActor.getSyncedProperties

getType() ​

getType(): string

Defined in: packages/prismarine/src/world/ShownActor.ts:34

Returns ​

string

Inherited from ​

ShownActor.getType

getUUID() ​

getUUID(): UUIDValue

Defined in: packages/prismarine/src/world/ShownPlayer.ts:20

The identity the client logged in with.

Returns ​

UUIDValue

getVelocity() ​

getVelocity(): Vector3

Defined in: packages/prismarine/src/world/ShownActor.ts:36

Returns ​

Vector3

Inherited from ​

ShownActor.getVelocity

isFlying() ​

isFlying(): boolean

Defined in: packages/prismarine/src/world/ShownPlayer.ts:33

Returns ​

boolean

isOnGround() ​

isOnGround(): boolean

Defined in: packages/prismarine/src/world/ShownActor.ts:47

Returns ​

boolean

Inherited from ​

ShownActor.isOnGround

isOp() ​

isOp(): boolean

Defined in: packages/prismarine/src/world/ShownPlayer.ts:30

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

Returns ​

boolean