API reference / @jsprismarine/prismarine / modules/tokens
modules/tokens
Interfaces
ContentSource
Defined in: prismarine/src/modules/tokens.ts:14
Where the current content build is read from; the build itself is replaced on every start.
Methods
getContent()
getContent():
ServerContent
Defined in: prismarine/src/modules/tokens.ts:15
Returns
ServerContent
Variables
bansToken
constbansToken:ServiceToken<BanManager>
Defined in: prismarine/src/modules/tokens.ts:23
The ban list, provided by the prismarine:bans module.
chatToken
constchatToken:ServiceToken<ChatManager>
Defined in: prismarine/src/modules/tokens.ts:27
The chat forwarder, provided by the prismarine:social module.
commandsToken
constcommandsToken:ServiceToken<CommandManager>
Defined in: prismarine/src/modules/tokens.ts:47
The command registry and dispatcher, provided by the prismarine:commands module.
contentToken
constcontentToken:ServiceToken<ContentSource>
Defined in: prismarine/src/modules/tokens.ts:41
The content build, provided by the prismarine:content module.
networkToken
constnetworkToken:ServiceToken<Networking>
Defined in: prismarine/src/modules/tokens.ts:39
The network front door (listener start, teardown, and the listener itself), provided by the prismarine:network module. The server drives its start and kill: the bind address and port arrive with Server.bootstrap(ip, port).
packetHandlersToken
constpacketHandlersToken:ServiceToken<PacketHandlerRegistry>
Defined in: prismarine/src/modules/tokens.ts:43
The inbound packet handlers, provided by the prismarine:packet-handlers module.
permissionsToken
constpermissionsToken:ServiceToken<PermissionManager>
Defined in: prismarine/src/modules/tokens.ts:25
Operator status and permission grants, provided by the prismarine:permissions module.
tickerToken
consttickerToken:ServiceToken<Ticker>
Defined in: prismarine/src/modules/tokens.ts:33
The tick loop's counters (tick number, TPS, tick duration), provided by the prismarine:ticker module. Tick work is observed through the server's typed tick event, which the loop emits and awaits every tick.
worldsToken
constworldsToken:ServiceToken<WorldManager>
Defined in: prismarine/src/modules/tokens.ts:45
The loaded levels and worlds, provided by the prismarine:worlds module.