Перейти к основному содержанию

BlockModeler

Module for creating block models.

Index

Type Aliases

BoxVertexes

BoxVertexes: [number, number, number, number, number, number]

Array of 6 coordinates representing start and end point of box.

Functions

getRotatedBoxVertexes

  • @rotation

    block rotation


    Parameters

    Returns BoxVertexes

    box vertexes with specified rotation

setInventoryModel

  • setInventoryModel(blockID: number, model: any, data?: number): void
  • Sets hand and ui model for the block.


    Parameters

    • blockID: number

      block numeric id

    • model: any

      block model

    • optionaldata: number

      block data (0 by default)

    Returns void

setStairsRenderModel

  • setStairsRenderModel(id: number): void
  • Sets stairs render model and shape to block.


    Parameters

    • id: number

      block numeric id

    Returns void