Namespace BlockRenderer

Module used to create blocks with any custom model.

Functions

  • Adds "CustomBlockTessellation" callback function for specified block ID.

    Parameters

    Returns void

  • Disables custom rendering for the specified block.

    Parameters

    • id: number

      block ID

    • data: number

      block data or -1 to map all the data values

    Returns void

  • Enables block mapping for the specified block.

    Parameters

    • id: number

      block ID

    • data: number

      block data or -1 to map all the data values

    • icRender: ICRender.Model

      default model for the block

    Returns void

  • Enables custom rendering for the specified block.

    Parameters

    • id: number

      block ID

    • data: number

      block data or -1 to map all the data values

    Returns void

  • Forces block renders to be rebuilt immediately.

    Parameters

    • x: number
    • y: number
    • z: number
    • mode: number

      if 0 is passed, only the specified block gets rebuilt, if 1 is passed, all the blocks along y axes are rebuilt

    Returns void

  • Changes shape of the block on the specified coordinates.

    Parameters

    • x: number
    • y: number
    • z: number
    • icRender: ICRender.Model

      ICRender.Model object to be displayed at the coordinates

    • OptionalpreventRebuild: boolean

      if false or not specified, rebuild is performed immediately

    Returns void

  • Changes both collision and raycast shape of the block on given coords in given dimension.

    Parameters

    Returns void

    2.1.0b59

  • Changes collision shape of the block on given coords in given dimension.

    Parameters

    Returns void

    2.1.0b59

  • Changes raycast shape of the block on given coords in given dimension.

    Parameters

    Returns void

    2.1.0b59

  • Specifies custom collision and raycast shape for the block.

    Parameters

    • id: number

      block ID

    • data: number

      block data or -1 to map all the data values

    • shape: CollisionShape

      ICRender.CollisionShape object to be used as default collision and raycast shape for the specified block

    Returns void

    2.1.0b59

  • Specifies custom collision shape for the block.

    Parameters

    Returns void

    2.1.0b59

  • Specifies custom raycast shape for the block.

    Parameters

    • id: number

      block ID

    • data: number

      block data or -1 to map all the data values

    • shape: CollisionShape

      ICRender.CollisionShape object to be used as default raycast shape for the specified block

    Returns void

    2.1.0b59

  • Sets static ICRender model as block render shape.

    Parameters

    • id: number

      block ID

    • data: number

      block data or -1 to map all the data values

    • icRender: ICRender.Model

      ICRender.Model object to be used as static block shape

    Returns void

  • Resets shape of the block to default on the specified coordinates.

    Parameters

    • x: number
    • y: number
    • z: number
    • OptionalpreventRebuild: boolean

      if false or not specified, rebuild is performed immediately

    Returns void

  • Resets both collision and raycast shape of the block to default on given coords in given dimension.

    Parameters

    • dimension: number
    • x: number
    • y: number
    • z: number

    Returns void

    2.1.0b59

  • Resets collision shape of the block to default on given coords in given dimension.

    Parameters

    • dimension: number
    • x: number
    • y: number
    • z: number

    Returns void

    2.1.0b59

  • Resets raycast shape of the block to default on given coords in given dimension.

    Parameters

    • dimension: number
    • x: number
    • y: number
    • z: number

    Returns void

    2.1.0b59

Type Aliases

ModelTextureSet: [string, number][]

Type used to describe a new model for BlockRenderer.

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