diff options
author | LordRalex <lordralex@gmail.com> | 2013-07-12 03:24:08 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-12-06 00:10:51 -0600 |
commit | 6261854a29c97710b8eee6b0348bb9bd511fbfad (patch) | |
tree | bfd565f055e883364ed54ebeb413f852f8b4ff35 /src/main/java/org | |
parent | 95613a653c44499b08162909331dd467dcaf8c8b (diff) | |
download | bukkit-6261854a29c97710b8eee6b0348bb9bd511fbfad.tar bukkit-6261854a29c97710b8eee6b0348bb9bd511fbfad.tar.gz bukkit-6261854a29c97710b8eee6b0348bb9bd511fbfad.tar.lz bukkit-6261854a29c97710b8eee6b0348bb9bd511fbfad.tar.xz bukkit-6261854a29c97710b8eee6b0348bb9bd511fbfad.zip |
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.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/entity/Firework.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Firework.java b/src/main/java/org/bukkit/entity/Firework.java index cd03b2f3..b8a8c075 100644 --- a/src/main/java/org/bukkit/entity/Firework.java +++ b/src/main/java/org/bukkit/entity/Firework.java @@ -17,4 +17,10 @@ public interface Firework extends Entity { * @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(); } |