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

helix / ParticleOptionsValue

Class: ParticleOptionsValue โ€‹

Defined in: core/values/particle.ts:19

A particle id plus options, e.g. dust with a colour and size. Works anywhere a Particle does; the IR renders the options for each version.

Extends โ€‹

Constructors โ€‹

Constructor โ€‹

new ParticleOptionsValue(id, options): ParticleOptionsValue

Defined in: core/values/particle.ts:23

Parameters โ€‹

id โ€‹

string

options โ€‹

ParticleOptions

Returns โ€‹

ParticleOptionsValue

Overrides โ€‹

ResourceId.constructor

Properties โ€‹

lowered โ€‹

protected readonly lowered: true = true

Defined in: core/values/particle.ts:21

Marks it as rendered by the IR (see isLowered).


options โ€‹

readonly options: ParticleOptions

Defined in: core/values/particle.ts:25


registry โ€‹

readonly registry: "minecraft:particle_type"

Defined in: core/values/resource.ts:17

The registry this id resolves against, e.g. "minecraft:enchantment".

Inherited from โ€‹

ResourceId.registry

Methods โ€‹

baseId() โ€‹

baseId(): string

Defined in: core/values/particle.ts:40

The bare particle id, without options.

Returns โ€‹

string


render() โ€‹

render(): string

Defined in: core/values/particle.ts:30

Returns โ€‹

string

Overrides โ€‹

ResourceId.render

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