Interface Fireworks
Stores all explosions crafted into a Firework Rocket, as well as flight duration.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@Unmodifiable List
<FireworkEffect> effects()
Lists the effects stored in this component.static Fireworks.Builder
static Fireworks
fireworks
(List<FireworkEffect> effects, int flightDuration) @org.checkerframework.common.value.qual.IntRange(from=0L, to=255L) int
Number of gunpowder in this component.
-
Method Details
-
fireworks
@Contract(value="_, _ -> new", pure=true) static Fireworks fireworks(List<FireworkEffect> effects, int flightDuration) -
fireworks
-
effects
Lists the effects stored in this component.- Returns:
- the effects
-
flightDuration
@Contract(pure=true) @org.checkerframework.common.value.qual.IntRange(from=0L, to=255L) int flightDuration()Number of gunpowder in this component.- Returns:
- the flight duration
-