Appearance
helix / Texture
Class: Texture โ
Defined in: core/values/texture.ts:4
A resource pack texture (assets/<ns>/textures/<path>.png); get one from dp.texture or Texture.vanilla.
Extends โ
Constructors โ
Constructor โ
new Texture(
id):Texture
Defined in: core/values/id.ts:12
Parameters โ
id โ
string
Returns โ
Texture
Inherited from โ
Methods โ
render() โ
render():
string
Defined in: core/values/id.ts:14
Returns โ
string
Inherited from โ
vanilla() โ
staticvanilla(path):Texture
Defined in: core/values/texture.ts:9
A texture from the base game, e.g. Texture.vanilla("item/arrow").
Parameters โ
path โ
string
Returns โ
Texture