Appearance
helix / FireworkValue
Class: FireworkValue โ
Defined in: core/values/firework.ts:41
The minecraft:fireworks component: bursts and flight duration.
A rocket with no explosions does no damage.
Item.FIREWORK_ROCKET.firework( Firework({ flight: 1, explosions: [{ shape: FireworkShape.SMALL_BALL, colors: [0xff0000] }] }), )
Extends โ
Constructors โ
Constructor โ
new FireworkValue(
input):FireworkValue
Defined in: core/values/firework.ts:42
Parameters โ
input โ
Returns โ
FireworkValue
Overrides โ
Properties โ
lowered โ
protectedreadonlylowered:true=true
Defined in: core/values/value.ts:14
Tells lowered values apart from plain objects (e.g. NBT compounds).
Inherited from โ
value โ
readonlyvalue:NbtInput
Defined in: core/values/nbt/snbt.ts:27
Inherited from โ
Methods โ
keys() โ
keys():
string[] |undefined
Defined in: core/values/nbt/snbt.ts:32
The top-level keys of a compound, or undefined for raw SNBT or anything else.
Returns โ
string[] | undefined