Interface FireworkMeta

    • Method Detail

      • getEffects

        @NotNull
        List<FireworkEffect> getEffects()
        Get the effects in this firework.
        Returns:
        An immutable list of the firework effects
      • getEffectsSize

        int getEffectsSize()
        Get the number of effects in this firework.
        Returns:
        The number of effects
      • clearEffects

        void clearEffects()
        Remove all effects from this firework.
      • hasEffects

        boolean hasEffects()
        Get whether this firework has any effects.
        Returns:
        true if it has effects, false if there are no effects
      • getPower

        int getPower()
        Gets the approximate height the firework will fly.
        Returns:
        approximate flight height of the firework.
      • setPower

        void setPower​(int power)
               throws IllegalArgumentException
        Sets the approximate power of the firework. Each level of power is half a second of flight time.
        Parameters:
        power - the power of the firework, from 0-128
        Throws:
        IllegalArgumentException - if height<0 or height>128