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.
import crafttweaker.api.item.component.Fireworks;
Implements
Undocumented Interfaces
TooltipProvider
Members
Getter
Gets the explosions of the Fireworks.script.zs
myFireworks.explosion
Return Type:
List<FireworkExplosion>
Getter
Gets the flight duration of the Fireworks.script.zs
// Fireworks.flightDuration as intmyFireworks.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.script.zs
Returns: The new Fireworks.
Fireworks.of(myInt, myList);
Parameters:
flightDuration: int
Type: int
- The flight duration of the Fireworks. explosions: List<FireworkExplosion>
Type: List<FireworkExplosion>
- The explosions of the Fireworks.
Return Type:
Fireworks