Skip to content

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 ​

const bansToken: ServiceToken<BanManager>

Defined in: prismarine/src/modules/tokens.ts:23

The ban list, provided by the prismarine:bans module.


chatToken ​

const chatToken: ServiceToken<ChatManager>

Defined in: prismarine/src/modules/tokens.ts:27

The chat forwarder, provided by the prismarine:social module.


commandsToken ​

const commandsToken: ServiceToken<CommandManager>

Defined in: prismarine/src/modules/tokens.ts:47

The command registry and dispatcher, provided by the prismarine:commands module.


contentToken ​

const contentToken: ServiceToken<ContentSource>

Defined in: prismarine/src/modules/tokens.ts:41

The content build, provided by the prismarine:content module.


networkToken ​

const networkToken: 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 ​

const packetHandlersToken: ServiceToken<PacketHandlerRegistry>

Defined in: prismarine/src/modules/tokens.ts:43

The inbound packet handlers, provided by the prismarine:packet-handlers module.


permissionsToken ​

const permissionsToken: ServiceToken<PermissionManager>

Defined in: prismarine/src/modules/tokens.ts:25

Operator status and permission grants, provided by the prismarine:permissions module.


tickerToken ​

const tickerToken: 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 ​

const worldsToken: ServiceToken<WorldManager>

Defined in: prismarine/src/modules/tokens.ts:45

The loaded levels and worlds, provided by the prismarine:worlds module.