SerenityJS
    Preparing search index...

    Class TerrainGenerator

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    dimension: Dimension

    The dimension of the generator.

    identifier: string = ...

    The identifier of the generator.

    properties: TerrainGeneratorProperties = DefaultTerrainGeneratorProperties

    The properties of the generator.

    queue: Map<bigint, (value: Chunk) => void> = ...

    The chunk queue for the generator.

    worker: null | Worker = null

    The worker thread for the generator, if applicable.

    identifier: string

    The identifier of the generator.

    worker: null | typeof TerrainWorker = null

    The terrain worker for the generator, if applicable.

    Methods

    • Hands off the chunk generation to the worker thread.

      Parameters

      • cx: number

        The chunk x coordinate.

      • cz: number

        The chunk z coordinate.

      Returns Promise<Chunk>

      A promise that resolves with the generated chunk.