FireworkExplosion

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.FireworkExplosion;

Implements

Undocumented Interfaces

TooltipProvider

Members

Getter
script.zs
// FireworkExplosion.colors as List<Integer>
myFireworkExplosion.colors

Return Type: List<Integer>

Getter
script.zs
// FireworkExplosion.fadeColors as List<Integer>
myFireworkExplosion.fadeColors

Return Type: List<Integer>

Getter
script.zs
// FireworkExplosion.hasTrail as bool
myFireworkExplosion.hasTrail

Return Type: bool

Getter
script.zs
// FireworkExplosion.hasTwinkle as bool
myFireworkExplosion.hasTwinkle

Return Type: bool

static of(shape as Shape, colors as List<Integer>, fadeColors as List<Integer>, hasTrail as bool, hasTwinkle as bool) as FireworkExplosion
script.zs
// FireworkExplosion.of(shape as FireworkExplosionShape, colors as List<Integer>, fadeColors as List<Integer>, hasTrail as bool, hasTwinkle as bool) as FireworkExplosion;
FireworkExplosion.of(myShape, myList, myList, myBool, myBool);

Parameters:

colors Type: List<Integer>
fadeColors Type: List<Integer>
hasTrail Type: bool
hasTwinkle Type: bool

Return Type: FireworkExplosion

Getter
script.zs
// FireworkExplosion.shape as FireworkExplosionShape
myFireworkExplosion.shape

Return Type: FireworkExplosionShape

withFadeColors(colors as List<Integer>) as FireworkExplosion
script.zs
// FireworkExplosion.withFadeColors(colors as List<Integer>) as FireworkExplosion;
myFireworkExplosion.withFadeColors(myList);

Parameters:

colors Type: List<Integer>

Return Type: FireworkExplosion