SerenityJS
    Preparing search index...
    Index

    Constructors

    • Creates a new biome storage.

      Parameters

      • Optionalpalette: number[]

        The optional palette.

      • Optionalbiomes: number[]

        The optional biomes.

      • Optionalsize: [number, number, number]

        The size of the biome storage.

      Returns BiomeStorage

    Properties

    biomes: number[]

    The biomes of the storage.

    palette: number[]

    The palette of the storage.

    size: [number, number, number]

    The size of the block storage.

    MAX_SIZE: number = ...

    The total maximum chunk size.

    MAX_X: 16

    The maximum chunk size in the x direction.

    MAX_Y: 16

    The maximum chunk size in the y direction.

    MAX_Z: 16

    The maximum chunk size in the z direction.

    Methods

    • Gets the biome at the given block coordinates.

      Parameters

      • bx: number

        The x coordinate of the block.

      • by: number

        The y coordinate of the block.

      • bz: number

        The z coordinate of the block.

      Returns number

      The biome.

    • Calculates the index of the block position.

      Parameters

      • bx: number

        The x coordinate of the block.

      • by: number

        The y coordinate of the block.

      • bz: number

        The z coordinate of the block.

      Returns number

      The index of the block.

    • Sets the biome at the given block coordinates.

      Parameters

      • bx: number

        The x coordinate of the block.

      • by: number

        The y coordinate of the block.

      • bz: number

        The z coordinate of the block.

      • state: number

        The biome.

      Returns void