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
readonlyattributes:Attributes
Defined in: packages/prismarine/src/world/ShownActor.ts:44
The attributes a client is sent.
Inherited from
device
readonlydevice: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
readonlygamemode:Gametype
Defined in: packages/prismarine/src/world/ShownPlayer.ts:28
headYaw
readonlyheadYaw:number
Defined in: packages/prismarine/src/world/ShownActor.ts:39
Inherited from
metadata
readonlymetadata:Metadata
Defined in: packages/prismarine/src/world/ShownActor.ts:41
The actor metadata a client is sent, flags and properties both.
Inherited from
pitch
readonlypitch:number
Defined in: packages/prismarine/src/world/ShownActor.ts:37
Inherited from
platformChatId
readonlyplatformChatId:string
Defined in: packages/prismarine/src/world/ShownPlayer.ts:24
skin
readonlyskin:Skin|null
Defined in: packages/prismarine/src/world/ShownPlayer.ts:27
xuid
readonlyxuid:string
Defined in: packages/prismarine/src/world/ShownPlayer.ts:23
yaw
readonlyyaw:number
Defined in: packages/prismarine/src/world/ShownActor.ts:38
Inherited from
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
getEquipment()
getEquipment():
ViewableEquipment
Defined in: packages/prismarine/src/world/ShownActor.ts:45
Returns
Inherited from
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
Inherited from
getRuntimeId()
getRuntimeId():
bigint
Defined in: packages/prismarine/src/world/ShownActor.ts:33
Returns
bigint
Inherited from
getStatusEffects()
getStatusEffects(): readonly
StatusEffect[]
Defined in: packages/prismarine/src/world/ShownActor.ts:46
Returns
readonly StatusEffect[]
Inherited from
getSyncedProperties()
getSyncedProperties():
SyncedProperties
Defined in: packages/prismarine/src/world/ShownActor.ts:42
Returns
Inherited from
ShownActor.getSyncedProperties
getType()
getType():
string
Defined in: packages/prismarine/src/world/ShownActor.ts:34
Returns
string
Inherited from
getUUID()
getUUID():
UUIDValue
Defined in: packages/prismarine/src/world/ShownPlayer.ts:20
The identity the client logged in with.
Returns
getVelocity()
getVelocity():
Vector3
Defined in: packages/prismarine/src/world/ShownActor.ts:36
Returns
Inherited from
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
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