Object used to manipulate rendered block during Callback.CustomBlockTessellationFunction calls.

interface RenderAPI {
    getAddr(): number;
    renderBlock(x: number, y: number, z: number, blockId: number, blockData: number): void;
    renderBlockHere(blockId: number, blockData: number): 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;
    renderBoxIdHere(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, id: number, data: number): 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;
    renderBoxTextureHere(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, id: number, data: number): void;
    renderModel(x: number, y: number, z: number, model: BlockRenderer.Model): void;
    renderModelHere(model: BlockRenderer.Model): void;
}

Methods

  • Returns number

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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • Renders block model at current block coordinates.

    Parameters

    Returns void

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