ReadonlyfileAbsolute path to the texture file on disk. Empty string in browser mode.
ReadonlyidThe relative path from the resource pack root, without file extension.
e.g. "textures/tsu/nat/blocks/maple_log"
The heightmap companion texture, resolved from texture_set.heightmap.
Heightmaps are an alternative to normal maps in Bedrock PBR.
undefined if this texture has no texture set or no heightmap entry.
The metalness/emissive/roughness (MER) companion texture,
resolved from texture_set.metalness_emissive_roughness.
undefined if this texture has no texture set or no MER entry.
The normal map companion texture, resolved from texture_set.normal.
undefined if this texture has no texture set or no normal map entry.
All blocks whose resolved texture matches this texture.
All entities whose resource pack texture definitions include this texture.
All items whose resolved texture matches this texture.
Represents a texture file (
.pngor.tga) from the resource pack'stextures/directory.Keyed by relative path without extension, matching how atlas files reference textures (e.g.
"textures/tsu/nat/blocks/maple_log").Note:
getPixelData()is only available in Node.js (disk) mode. In browser mode the collection will be empty, and properties on other assets that returnTexturewill returnundefined.Access via
addon.textures.get(id).Example