Interface Fireworks


@NullMarked @Experimental @NonExtendable public interface Fireworks
Stores all explosions crafted into a Firework Rocket, as well as flight duration.
See Also:
  • Method Details

    • fireworks

      @Contract(value="_, _ -> new", pure=true) static Fireworks fireworks(List<FireworkEffect> effects, int flightDuration)
    • fireworks

      @Contract(value="-> new", pure=true) static Fireworks.Builder fireworks()
    • effects

      @Contract(pure=true) @Unmodifiable List<FireworkEffect> 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