Hierarchy

  • Texture

Constructors

Methods

Constructors

Methods

  • Destroys the texture. It's highly recommended to set the texture to null after you call this

    Returns void

  • Reloads the (Minecraft renderer) texture.

    Returns void

  • Gets a Minecraft texture. Can only be drawn with the Minecraft renderer

    Parameters

    • textureName: string

      The texture name, example: "textures/items/arrow"

    Returns Texture

  • Loads a texture from file.

    Parameters

    • filePath: string

      The file path to the texture, could be absolute or relative to the script folder

    Returns Texture

Generated using TypeDoc