Skip to main content

Module server

Module server 

Source
Expand description

This module contains the Server struct, which is the main entry point for the server.

ModulesΒ§

broadcasting πŸ”’
jobs
Tick-polled server jobs. Tick-polled server jobs.
known_players πŸ”’
packet_processor πŸ”’
Serverbound gameplay packet scheduling between game ticks.
permissions πŸ”’
player_admission πŸ”’
player_lifecycle πŸ”’
pregen πŸ”’
Startup pregeneration for the server default world.
registry_cache
The registry cache for the server.
run_loop πŸ”’
tick_rate_manager
The tick rate manager for the server.
world_changes πŸ”’
world_tick_workers πŸ”’
worlds
Domain-aware loaded world map. Domain-aware loaded world map.

StructsΒ§

CommandDataSaveResults
Results from saving every command-owned persistent data set.
DomainPlayerState πŸ”’
DomainSwitchRequest πŸ”’
GameTickTaskGuard πŸ”’
PreparedSpawn πŸ”’
Server
The main server struct.
TabListTickStats πŸ”’
UnpreparedDomainPlayerState πŸ”’

EnumsΒ§

DomainPlayerData πŸ”’
PlayerPermissionUpdateError
Failure while atomically editing one player’s persisted permission state.
UnpreparedDomainPlayerData πŸ”’

ConstantsΒ§

CHUNK_SENDING_TPS πŸ”’
Tick rate for the chunk sending loop.
COMMAND_DATA_AUTOSAVE_INTERVAL πŸ”’
Wall-clock interval between saves of command-owned persistent server data. Matches vanilla’s intended five-minute autosave cadence.
SEND_PLAYER_INFO_INTERVAL πŸ”’
Interval in ticks between player info broadcasts (600 ticks = 30 seconds). Matches vanilla PlayerList.SEND_PLAYER_INFO_INTERVAL.
SLOW_CHUNK_TICK_THRESHOLD πŸ”’
Work duration at which background chunk work is considered slow.
TAB_LIST_UPDATE_INTERVAL πŸ”’
Interval in ticks between tab list updates (20 ticks = 1 second).

FunctionsΒ§

apply_default_spawn πŸ”’
available_worker_threads πŸ”’
can_entity_return_from_end_to_overworld πŸ”’
can_teleport_between_worlds πŸ”’
cap_positive_thread_count πŸ”’
configured_chunk_encoding_threads πŸ”’
configured_chunk_generation_threads πŸ”’
configured_packet_workers πŸ”’
direct_passengers_allow_end_return πŸ”’
generation_settings_for_world πŸ”’
is_allowed_to_enter_portal πŸ”’
is_allowed_to_enter_portal_target πŸ”’
is_end_dimension_type πŸ”’
is_end_return_transition πŸ”’
is_nether_dimension_type πŸ”’
local_respawn_data_for_world πŸ”’
packet_workers_for_available πŸ”’
world_config_registries πŸ”’