Package org.bukkit

Class FireworkEffect

    • Method Detail

      • builder

        @NotNull
        public static FireworkEffect.Builder builder()
        Construct a firework effect.
        Returns:
        A utility object for building a firework effect
      • hasFlicker

        public boolean hasFlicker()
        Get whether the firework effect flickers.
        Returns:
        true if it flickers, false if not
      • hasTrail

        public boolean hasTrail()
        Get whether the firework effect has a trail.
        Returns:
        true if it has a trail, false if not
      • getColors

        @NotNull
        public List<Color> getColors()
        Get the primary colors of the firework effect.
        Returns:
        An immutable list of the primary colors
      • getFadeColors

        @NotNull
        public List<Color> getFadeColors()
        Get the fade colors of the firework effect.
        Returns:
        An immutable list of the fade colors
      • getType

        @NotNull
        public FireworkEffect.Type getType()
        Get the type of the firework effect.
        Returns:
        The effect type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object