Fireworks

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

Implements

Undocumented Interfaces

TooltipProvider

Members

Getter
script.zs
// Fireworks.explosion as List<FireworkExplosion>
myFireworks.explosion

Return Type: List<FireworkExplosion>

Getter
script.zs
// Fireworks.flightDuration as int
myFireworks.flightDuration

Return Type: int

static of(flightDuration as int, explosions as List<FireworkExplosion>) as Fireworks
script.zs
// Fireworks.of(flightDuration as int, explosions as List<FireworkExplosion>) as Fireworks;
Fireworks.of(myInt, myList);

Parameters:

flightDuration Type: int
explosions Type: List<FireworkExplosion>

Return Type: Fireworks