Class: Player
Represents a player within the world.
Extends
Constructors
new Player()
private
new Player():Player
Returns
Overrides
Properties
camera
readonly
camera:Camera
Remarks
The player's Camera.
Throws
This property can throw when used.
dimension
readonly
dimension:Dimension
Remarks
Dimension that the entity is currently within.
Throws
This property can throw when used.
Inherited from
fallDistance
Beta
readonly
fallDistance:number
Remarks
The distance an entity has fallen. The value is reset when the entity is teleported. The value is always 1 when gliding with Elytra.
Throws
This property can throw when used.
Inherited from
id
readonly
id:string
Remarks
Unique identifier of the entity. This identifier is intended to be consistent across loads of a world instance. No meaning should be inferred from the value and structure of this unique identifier - do not parse or interpret it. This property is accessible even if Entity.isValid is false.
Inherited from
inputPermissions
Beta
readonly
inputPermissions:PlayerInputPermissions
Remarks
Input permissions of the player.
isClimbing
readonly
isClimbing:boolean
Remarks
Whether the entity is touching a climbable block. For example, a player next to a ladder or a spider next to a stone wall.