Expand description
A mod’s media as the tools see them: its .yres pictures (bytes and
all), its .ytextures, and the files the build makes of them — so the
IDE previews and edits what the build will make, converting nothing
itself. Reading is cached until a file changes.
Structs§
Functions§
- built_
asset - The file the build makes at
assets/<ns>/<path>from the mod atroot— a texture’s PNG or.png.mcmeta(a.ytexture’s picture and animation, else a.yrespicture of that path) —Nonewhen the build makes none there. - is_
own_ texture - Whether texture
idis the mod’s own (it can be painted in place, or added). - mod_id
- The id of the mod at
root(its manifest’s). - picture
- Picture
@<set>.<name>of the mod atroot. - pictures
- Every picture of the mod at
root. - save_
picture - Writes
bytesas picture@<set>.<name>of the mod atroot(the set’s file made when there’s none); the file written. - save_
texture_ animation - Sets texture
id’s animation (None: still); the.ytexturewritten. - save_
texture_ picture - Writes
pngas textureid’s picture: into the.yrespicture its.ytexturenames, or — a new texture — into the set its folder’s pictures go in, with a.ytexturenaming it. The.yreswritten. - texture
- Texture
idof the mod atroot, when it has a.ytexture. - textures
- Every texture of the mod at
root.