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Β§
- Command
Data Save Results - Results from saving every command-owned persistent data set.
- Domain
Player πState - Domain
Switch πRequest - Game
Tick πTask Guard - Prepared
Spawn π - Server
- The main server struct.
- TabList
Tick πStats - Unprepared
Domain πPlayer State
EnumsΒ§
- Domain
Player πData - Player
Permission Update Error - Failure while atomically editing one playerβs persisted permission state.
- Unprepared
Domain πPlayer Data
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