Skip to content

ServerPlayerEntity

Represents a player on the server level. Extends from PlayerEntity

setGameMode(game_mode: GameMode) -> Null

Changes the players game mode based on game_mode.

dropSelectedItem() -> Null

Drops the players selected item.

getViewDistance() -> Integer

Returns the players view distance.

setExperienceLevels(experience_levels: Integer) -> Null

Sets the players experience levels to experience_levels.

setExperiencePoints(experience_points: Integer) -> Null

Sets the players experience points to experience_points.