Options
All
  • Public
  • Public/Protected
  • All
Menu

Object used to manipulate rendered block during Callback.CustomBlockTessellationFunction calls

Hierarchy

  • RenderAPI

Index

Methods

  • getAddr(): number
  • Returns number

    pointer to native object instance of the following object, to be used in custom native code etc.

  • renderBlock(x: number, y: number, z: number, blockId: number, blockData: number): void
  • Renders full block at specified coordinates

    Parameters

    • x: number
    • y: number
    • z: number
    • blockId: number

      id of the block to be used as texture source

    • blockData: number

      data of the block to be used as texture source

    Returns void

  • renderBlockHere(blockId: number, blockData: number): void
  • Renders full block at current block coordinates

    Parameters

    • blockId: number

      id of the block to be used as texture source

    • blockData: number

      data of the block to be used as texture source

    Returns void

  • renderBoxId(x: number, y: number, z: number, x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, id: number, data: number): void
  • Renders box at the specified coordinates of the specified size

    Parameters

    • x: number
    • y: number
    • z: number
    • x1: number
    • y1: number
    • z1: number
    • x2: number
    • y2: number
    • z2: number
    • id: number

      id of the block to be used as texture source

    • data: number

      data of the block to be used as texture source

    Returns void

  • renderBoxIdHere(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, id: number, data: number): void
  • Renders box at current block coordinates of the specified size

    Parameters

    • x1: number
    • y1: number
    • z1: number
    • x2: number
    • y2: number
    • z2: number
    • id: number

      id of the block to be used as texture source

    • data: number

      data of the block to be used as texture source

    Returns void

  • renderBoxTexture(x: number, y: number, z: number, x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, texName: string, texId: number): void
  • Renders box at the specified coordinates of the specified size

    Parameters

    • x: number
    • y: number
    • z: number
    • x1: number
    • y1: number
    • z1: number
    • x2: number
    • y2: number
    • z2: number
    • texName: string

      block texture name

    • texId: number

      block texture id

    Returns void

  • renderBoxTextureHere(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, id: number, data: number): void
  • Renders box at current block coordinates of the specified size

    Parameters

    • x1: number
    • y1: number
    • z1: number
    • x2: number
    • y2: number
    • z2: number
    • id: number
    • data: number

    Returns void

  • Renders block model at the specified coordinates

    Parameters

    • x: number
    • y: number
    • z: number
    • model: BlockRenderer.Model

      block model to be rendered at the specified coordinates

    Returns void

Generated using TypeDoc