Class FireworkHandler

java.lang.Object
com.bencodez.advancedcore.api.misc.effects.FireworkHandler
All Implemented Interfaces:
org.bukkit.event.Listener

public class FireworkHandler extends Object implements org.bukkit.event.Listener
Handler for launching fireworks.
  • Method Details

    • getInstance

      public static FireworkHandler getInstance()
      Gets the single instance of FireworkHandler.
      Returns:
      single instance of FireworkHandler
    • launchFirework

      public void launchFirework(org.bukkit.Location loc, int power, ArrayList<String> colors, ArrayList<String> fadeOutColor, boolean trail, boolean flicker, ArrayList<String> types, boolean detonate)
      Launch firework.
      Parameters:
      loc - the loc
      power - the power
      colors - the colors
      fadeOutColor - the fade out color
      trail - the trail
      flicker - the flicker
      types - the types
      detonate - whether to detonate immediately
    • onFireworkDamage

      public void onFireworkDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event)
      Handles firework damage events.
      Parameters:
      event - the damage event