Options
All
  • Public
  • Public/Protected
  • All
Menu

Class representing model used by BlockRenderer

Hierarchy

  • Model

Index

Constructors

Methods

  • addBlock(id: number, data: number, par: boolean): void
  • addBlock(id: number, data: number): void
  • addBlock(id: number): void
  • addBox(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, id: number, data: number): void
  • addBox(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, descr: ModelTextureSet): void
  • addBox(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, texName: string, texId: number): void
  • addBox(id: number, data?: number): void
  • Adds new box to the model using specified block's textures

    Parameters

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

    Returns void

  • Adds new box to the model using specified textures for the six sides of the box

    Parameters

    • x1: number
    • y1: number
    • z1: number
    • x2: number
    • y2: number
    • z2: number
    • descr: ModelTextureSet

    Returns void

  • Adds new box to the model using specified block texture name and id

    Parameters

    • x1: number
    • y1: number
    • z1: number
    • x2: number
    • y2: number
    • z2: number
    • texName: string
    • texId: number

    Returns void

  • Adds new block with specified block's textures

    Parameters

    • id: number
    • Optional data: number

    Returns void

  • clear(): void

Generated using TypeDoc