Namespace ItemModel

Namespace used to change item models in player's hand and/or inventory. By default, if the block has an ICRender, it is automatically applied as item's model.

2.0.2b20

Functions

  • Parameters

    • id: number

      item or block numeric ID

    • data: number

      item or block data

    Returns string

    Texture name for the specified item or block.

  • Parameters

    • id: number
    • count: number
    • data: number
    • randomize: boolean

      if true, item mesh position is randomized

    Returns RenderMesh

    New RenderMesh generated for specified item.

  • Run it at start of your mod to create new group, it will be applied to all models, created at the root of your mod (including default mod).

    Parameters

    • mod: string
    • version: string

    Returns void

    If specified version does not match cache version, whole group will be re-created.

    2.1.0b56

  • Releases some of the bitmaps to free up memory by run garbage cleaner.

    Parameters

    • bytes: number

      bytes count to be released

    Returns void

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