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
Gets the explosions of the Fireworks.
script.zs
// Fireworks.explosion as List<FireworkExplosion>
myFireworks.explosion

Return Type: List<FireworkExplosion>

Getter
Gets the flight duration of the Fireworks.
script.zs
// Fireworks.flightDuration as int
myFireworks.flightDuration

Return Type: int

static of(flightDuration as int, explosions as List<FireworkExplosion>) as Fireworks
Creates a new Fireworks with the given flight duration and explosions.

Returns: The new Fireworks.

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

Parameters:

flightDuration Type: int - The flight duration of the Fireworks.
explosions Type: List<FireworkExplosion> - The explosions of the Fireworks.

Return Type: Fireworks