Textures
The global instance of the TextureAPI
getTextures(string,int,int)
Returns a table with all textures used by this avatar
Do not include generated textures from this API
Example:
textures:getTextures()
newTexture(string,int,int)
Creates a copy of the texture
The copy is registered with the given name
Example:
textures:newTexture("Name", 64, 64)
fromVanilla(string,string)
Creates a copy of the texture
The copy is registered with the given name
Example:
textures:fromVanilla("Name", "textures/item/apple.png")
get(string)
Gets a registered texture based on its name, or nil if no texture was found with that name
Example:
textures:get("Name")
read(string)
Reads a texture from a base64 string or a byte array
copy(string,texture)
Creates a copy of the texture
The copy is registered with the given name
Example:
textures:copy("Name", textures["myTexture"])