ReadonlydataThe raw parsed JSON data of the asset file.
ReadonlydocstringsAll JSDoc-style comment blocks parsed from this asset's source file,
in document order. Empty array when no /** … */ blocks are present.
ReadonlyfileAbsolute path to the asset's file on disk. Empty string in browser mode.
ReadonlyresourceThe resource pack name declared in the file, e.g. "vanilla".
ReadonlytextureThe texture name declared in the file, e.g. "item_texture".
Returns all shortnames defined in this atlas.
Returns the number of texture entries.
Wraps a texture atlas JSON file — either
textures/item_texture.jsonortextures/terrain_texture.json. Maps shortnames to texture file paths.Accessed via
addon.itemTexturesandaddon.terrainTextures.Example