Skip to content

Commit

Permalink
chore: updated player docs
Browse files Browse the repository at this point in the history
  • Loading branch information
PMK744 committed May 28, 2024
1 parent e1dbf4f commit 974e5ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/world/src/player/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,33 +103,39 @@ class Player extends Entity {
public mining: BlockCoordinates | null = null;

/**
* @readonly
* The currently opened container visible to the player.
*/
public openedContainer: Container | null = null;

/**
* @readonly
* The ItemStack the player is currently using.
*/
public usingItem: ItemStack | null = null;

/**
* @readonly
* If the player is sneaking.
*/
public isSneaking = false;

/**
* @readonly
* If the player is sprinting.
*/
public isSprinting = false;

/**
* @readonly
* If the player is flying.
*/
public isFlying = false;

// Protected properties

/**
* @deprecated This property is deprecated and will be removed in the future.
* The player's gamemode.
*/
protected _gamemode = Gamemode.Creative;
Expand Down

0 comments on commit 974e5ff

Please sign in to comment.