Class BlockModel

Defines a block model within a Mod.

BlockModel

Hierarchy (view full)

Constructors

Properties

cuboids: ModelCuboid[]

The cuboids that make up the block model.

Memberof

BlockModel

name: string

The name of the block model.

Memberof

BlockModel

written: boolean

Methods

  • Applies a matrix transformation to the block model.

    Parameters

    • matrix: Matrix4

      The matrix transformation to apply.

    Returns BlockModel

    Memberof

    BlockModel

  • Clones the BlockModel into a new instance.

    Parameters

    • Optional name: string = ...

    Returns BlockModel

    A new instance of the current BlockModel.

    Memberof

    BlockModel

  • Rotates the block model by the given euler angles.

    Parameters

    • euler: Euler

      The euler angles to rotate the block model by.

    Returns BlockModel

    Memberof

    BlockModel

  • Rotates the block model around its center by the given euler angles.

    Parameters

    • euler: Euler

      The euler angles to rotate the block model by.

    Returns BlockModel

    Memberof

    BlockModel

  • Serializes the block model into a JSON object.

    Returns any

    The serialized block model as a JSON object.

    Memberof

    BlockModel

  • Sets the ambient occlusion for the block model.

    Parameters

    • enableAmbientOcclusion: boolean

      Whether ambient occlusion is enabled.

    Returns void

    Memberof

    BlockModel

  • Translates the block model by the given offset.

    Parameters

    • offset: Vector3

      The offset to translate the block model by.

    Returns BlockModel

    Memberof

    BlockModel

Generated using TypeDoc