Interface TextureData

Represents item texture data. For example, if /items-opaque folder contains file nugget_iron_0.png, you should pass "nugget_iron" as texture name and 0 as texture index. _N suffix can be omitted, but it is generally not recommended.

interface TextureData {
    data?: number;
    meta?: number;
    name: string;
}

Properties

Properties

data?: number

Texture index defined by _N texture suffix.

0
meta?: number

Same as data, so data is preferred in all cases.

name: string

Texture name, name of the file stored in the /items-opaque asset folder without extension and _N suffixes.

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