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
PlayerConnectiontrait that abstracts network connections. This module contains thePlayerConnectiontrait 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
CSetHealthpacket 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
GameProfilestruct, which is used to store information about a playerβs profile. - session π
- sleep π
- sleep_
state π - spam_
throttler π - stats_
counter - This module provides the
StatsCounter, which keeps track of stats with their counters, and implements some stat-related functions for the player. - tick_
state π - title π
- Player helpers for sending client-side title displays.
StructsΒ§
- Abilities
- Player abilities that control flight, invulnerability, and other special states.
This mirrors vanillaβs
Abilitiesclass. - Domain
Residence πToken - Runtime identity for one continuous stay in a Steel domain.
- Game
Profile - A struct representing a playerβs game profile.
- Known
Player - One cached player identity.
- Known
Players - In-memory player identity cache.
- Pending
Root πVehicle Restore - Player
- A struct representing a player.
- Player
Residence πState - Player
Respawn Config - Vanilla per-player respawn configuration.
- Player
Session - Connection-owned state that survives replacement of the active player entity.
EnumsΒ§
- Game
Profile Action - An enum representing a profile action.
- Profile
Lookup Error - Failure while resolving a player identity through the configured profile service.
ConstantsΒ§
- DEFAULT_
FLYING_ SPEED - Default flying speed in vanilla Minecraft
- DROP_
SPAM_ πTHROTTLER_ INCREMENT_ STEP - DROP_
SPAM_ πTHROTTLER_ THRESHOLD - HAT_
MODEL_ πPART_ MASK - 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