Skip to content

API reference / @jsprismarine/prismarine / world/BaseGenerator

world/BaseGenerator ​

Classes ​

Interfaces ​

GeneratorLogger ​

Defined in: packages/prismarine/src/world/BaseGenerator.ts:16

What a generator needs from the server's logger.

Structural rather than the Logger class, so a generator can be built in a test without a server behind it. A generator has one thing worth saying: where it decided to run its terrain, and why, which a person reading the console has no other way to find out.

Methods ​

info() ​

info(...message): void

Defined in: packages/prismarine/src/world/BaseGenerator.ts:17

Parameters ​
message ​

...string[]

Returns ​

void

warn() ​

warn(...message): void

Defined in: packages/prismarine/src/world/BaseGenerator.ts:18

Parameters ​
message ​

...string[]

Returns ​

void