This commit adds a method on fireworks that allows them to explode as if their fuse ran out.
27 lines
574 B
Java
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();
|
|
}
|