Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

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 โ€‹

IdValue.constructor

Methods โ€‹

render() โ€‹

render(): string

Defined in: core/values/id.ts:14

Returns โ€‹

string

Inherited from โ€‹

IdValue.render


vanilla() โ€‹

static vanilla(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

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.