UNPKG

@jsprismarine/prismarine

Version:

Dedicated Minecraft Bedrock Edition server written in TypeScript

24 lines 764 B
import { Service } from '../../utils'; import { Generator } from '../Generator'; import { default as Chunk } from '../chunk/Chunk'; export default interface Provider extends Service { /** * Returns the path to the world folder. */ getPath(): string; /** * Returns the chunk decoded from the provider. * @param cx - chunk x. * @param cz - chunk z. * @param seed - world seed. * @param generator - chunk generator. * @param config - config object. */ readChunk(cx: number, cz: number, seed: number, generator: Generator, config?: any): Promise<Chunk>; /** * Writes a chunk * @param chunk - chunk x */ writeChunk(chunk: Chunk): Promise<void>; } //# sourceMappingURL=Provider.d.ts.map