Skip to main content

Module player

Module player 

Source
Expand description

This module contains all things player-related.

Re-exportsยง

pub use chat::LastSeen;
pub use chat::LastSeenMessagesValidator;
pub use chat::MessageCache;
pub use connection::ClientInformation;
pub use connection::PlayerConnection;
pub use movement::PlayerInput;

Modulesยง

abilities ๐Ÿ”’
Player abilities (flight, invulnerability, etc.)
chat
Chat and messaging state for a player.
chunk_sender
This module is responsible for sending chunks to the client.
connection
This module contains the PlayerConnection trait that abstracts network connections. This module contains the PlayerConnection trait that abstracts network connections.
container_counter ๐Ÿ”’
entity_state ๐Ÿ”’
Core entity state flags for a player.
experience
Experience System
food_data
Player food/hunger system.
game_mode
Game mode specific logic for player interactions. Game mode specific logic for player interactions.
health_sync ๐Ÿ”’
Delta-tracking state for CSetHealth packet deduplication.
item_cooldowns ๐Ÿ”’
lifecycle ๐Ÿ”’
movement
Player movement physics and validation.
permissions ๐Ÿ”’
player_data
Persistent player data structures.
player_data_storage
Player data storage for global and domain-scoped player state.
player_inventory
Player inventory management.
profile ๐Ÿ”’
This module contains the GameProfile struct, which is used to store information about a playerโ€™s profile.
tick_state ๐Ÿ”’

Structsยง

Abilities
Player abilities that control flight, invulnerability, and other special states. This mirrors vanillaโ€™s Abilities class.
DomainResidenceToken ๐Ÿ”’
Runtime identity for one continuous stay in a Steel domain.
GameProfile
A struct representing a playerโ€™s game profile.
KnownPlayer
One cached player identity.
KnownPlayers
In-memory player identity cache.
PendingRootVehicleRestore ๐Ÿ”’
Player
A struct representing a player.
PlayerResidenceState ๐Ÿ”’

Enumsยง

GameProfileAction
An enum representing a profile action.
ProfileLookupError
Failure while resolving a player identity through the configured profile service.

Constantsยง

DEFAULT_FLYING_SPEED
Default flying speed in vanilla Minecraft
RESPAWN_SEARCH_READY_CANDIDATE_BUDGET ๐Ÿ”’

Functionsยง

is_valid_player_name
Returns whether a name is valid for online login and profile lookup.
offline_uuid
Generates vanillaโ€™s deterministic offline-mode UUID for a player name.
protocol_look_at_anchor ๐Ÿ”’