Files
Bukkit/src/main/java/org/bukkit/entity/Firework.java
LordRalex f01d64b538 Add detonate method for firework entities. Adds BUKKIT-4538
This commit adds a method on fireworks that allows them to explode as
if their fuse ran out.
2013-12-06 00:10:51 -06:00

27 lines
574 B
Java

package org.bukkit.entity;
import org.bukkit.inventory.meta.FireworkMeta;
public interface Firework extends Entity {
/**
* Get a copy of the fireworks meta
*
* @return A copy of the current Firework meta
*/
FireworkMeta getFireworkMeta();
/**
* Apply the provided meta to the fireworks
*
* @param meta The FireworkMeta to apply
*/
void setFireworkMeta(FireworkMeta meta);
/**
* Cause this firework to explode at earliest opportunity, as if it has no
* remaining fuse.
*/
void detonate();
}