Hierarchy

Properties

Constructors

Methods

Properties

The blocks in the chunk relative to the chunk.

chunk: unknown

Package

chunkData: {
    biomes: unknown;
    bitMap: unknown;
    chunkData: unknown;
}

Package

Type declaration

  • biomes: unknown
  • bitMap: unknown
  • chunkData: unknown
hash: string

Constructors

Methods

  • Example

    for (let x = 0; x < 16; x++)
    for (let z = 0; z < 16; z++)
    for (let y = 0; y < 100; y++)
    chunk.setBlock('grass_block', { x, y, z }, { snowy: false });

    Parameters

    • block: blockName
    • chunkRelativeLocation: {
          x: number;
          y: number;
          z: number;
      }

      The location relative to the chunk. Must be between 0 and 15.

      • x: number
      • y: number
      • z: number
    • Optional state: blockState

    Returns Chunk

  • Set a block without sending a packet to the client.

    Package

    Parameters

    • block: blockName
    • chunkRelativeLocation: {
          x: number;
          y: number;
          z: number;
      }

      The location relative to the chunk. Must be between 0 and 15.

      • x: number
      • y: number
      • z: number
    • Optional state: blockState

    Returns Chunk