Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace ICRender

Class used to define block models that depend on surrounding blocks. Some examples of such blocks are wires, pipes, block structure parts, etc.

Index

Variables

MODE_EXCLUDE: 1 = 1

Used to specify that the block should be absent to satisfy condition

MODE_INCLUDE: 0 = 0

Used to specify that the block should be present to satisfy condition

Functions

  • BLOCK(x: number, y: number, z: number, group: Group, exclude: boolean): CONDITION
  • Constructs new BLOCK condition

    Parameters

    • x: number

      is relative x coordinate

    • y: number

      is relative y coordinate

    • z: number

      is relative z coordinate

    • group: Group

      blocks group to check the condition for

    • exclude: boolean

      if true, the blocks from the group make the condition evaluate as false, as true otherwise

    Returns CONDITION

  • RANDOM(value: number, max: number, seed?: number): CONDITION
  • RANDOM(max: number): CONDITION
  • Constructs new RANDOM condition

    Parameters

    • value: number

      value that a generated random integer number should be for the condition to evaluate as true

    • max: number

      maximum value for the generator

    • Optional seed: number

      seed to be used for random numbers generation

    Returns CONDITION

  • Constructs new RANDOM condition with default seed and 0 as desired random value

    Parameters

    • max: number

      maximum value for the generator

    Returns CONDITION

  • getGroup(name: string): Group
  • Parameters

    • name: string

      group name

    Returns Group

    block group by its name, if no group with specified name exist, this function creates a new one

Generated using TypeDoc