SerenityJS
    Preparing search index...

    Represents a sub chunk.

    Index

    Constructors

    Properties

    index: null | number = null

    The index of the sub chunk.

    layers: BlockStorage[]

    The layers of the sub chunk.

    version: number

    The version of the sub chunk.

    Methods

    • Gets the block state at the given 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.

      • layer: number

        The layer of the block.

      Returns number

      The block state.

    • Sets the block state at the given 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 block state.

      • Optionallayer: number

        The layer of the block.

      Returns void