FireworkExplosionShape

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.item.component.FireworkExplosionShape;

Implements

FireworkExplosionShape implements the following interfaces:

StringRepresentable

Undocumented Interfaces

IExtensibleEnum,Comparable<Enum>

Enum Constants

FireworkExplosionShape is an enum with 5 constants. They are accessible like so:

script.zs
// FireworkExplosionShape.BURST
<constant:minecraft:firework_explosion/shape:burst>
// FireworkExplosionShape.CREEPER
<constant:minecraft:firework_explosion/shape:creeper>
// FireworkExplosionShape.LARGE_BALL
<constant:minecraft:firework_explosion/shape:large_ball>
// FireworkExplosionShape.SMALL_BALL
<constant:minecraft:firework_explosion/shape:small_ball>
// FireworkExplosionShape.STAR
<constant:minecraft:firework_explosion/shape:star>

Members

Getter
script.zs
// Shape.id as int
<constant:minecraft:firework_explosion/shape:burst>.id

Return Type: int

Getter
script.zs
// Shape.name as MutableComponent
<constant:minecraft:firework_explosion/shape:burst>.name

Return Type: MutableComponent

Getter
Gets the serialized name.
script.zs
// Shape.serializedName as string
<constant:minecraft:firework_explosion/shape:burst>.serializedName

Return Type: string

serializedName() as string
Gets the serialized name.

Returns: the serialized name.

script.zs
// Shape.serializedName() as string;
<constant:minecraft:firework_explosion/shape:burst>.serializedName();

Return Type: string