Groups (of blocks) are used to determine some render conditions; e.g., if a block exists on some relative coordinates, display some part of the model.

interface Group {
    name: string;
    add(id: number, data: number): void;
    getName(): string;
}

Methods

Properties

Methods

  • Adds a block to the group.

    Parameters

    • id: number

      block ID

    • data: number

      block data or -1 to use with all registered data values

    Returns void

Properties

name: string

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.