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.

Functions

  • Constructs new ICRender.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

  • Constructs new ICRender.BlockState condition that uses block state data (it must match the value) to display.

    Parameters

    • x: number

      is relative x coordinate

    • y: number

      is relative y coordinate

    • z: number

      is relative z coordinate

    • state: number

      one of EBlockStates values of relative block

    • value: number

      value to match selected state

    Returns CONDITION

    2.3.1b116

  • Constructs new ICRender.BlockState condition that uses block state data (it must match the value) to display.

    Parameters

    • state: number

      one of EBlockStates values

    • value: number

      value to match selected state

    Returns CONDITION

    2.3.1b116

  • Parameters

    • name: string

      group name

    Returns Group

    Block group by it's name, if no group with specified name exist, this function creates a new one.

Variables

MODE_EXCLUDE = 1

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

MODE_INCLUDE = 0

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

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