Class FireworkHandler
java.lang.Object
com.bencodez.advancedcore.api.misc.effects.FireworkHandler
- All Implemented Interfaces:
org.bukkit.event.Listener
Handler for launching fireworks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FireworkHandlerGets the single instance of FireworkHandler.voidlaunchFirework(org.bukkit.Location loc, int power, ArrayList<String> colors, ArrayList<String> fadeOutColor, boolean trail, boolean flicker, ArrayList<String> types, boolean detonate) Launch firework.voidonFireworkDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event) Handles firework damage events.
-
Method Details
-
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 locpower- the powercolors- the colorsfadeOutColor- the fade out colortrail- the trailflicker- the flickertypes- the typesdetonate- whether to detonate immediately
-
onFireworkDamage
public void onFireworkDamage(org.bukkit.event.entity.EntityDamageByEntityEvent event) Handles firework damage events.- Parameters:
event- the damage event
-