Appearance
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 โ
ResourceId<"minecraft:particle_type">
Constructors โ
Constructor โ
new ParticleOptionsValue(
id,options):ParticleOptionsValue
Defined in: core/values/particle.ts:23
Parameters โ
id โ
string
options โ
Returns โ
ParticleOptionsValue
Overrides โ
Properties โ
lowered โ
protectedreadonlylowered:true=true
Defined in: core/values/particle.ts:21
Marks it as rendered by the IR (see isLowered).
options โ
readonlyoptions:ParticleOptions
Defined in: core/values/particle.ts:25
registry โ
readonlyregistry:"minecraft:particle_type"
Defined in: core/values/resource.ts:17
The registry this id resolves against, e.g. "minecraft:enchantment".
Inherited from โ
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