From 06f33fc487f5a9247365eb1e65ec891e2cb96920 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 12 Jul 2013 03:24:08 -0500 Subject: [PATCH] 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. By: LordRalex --- paper-api/src/main/java/org/bukkit/entity/Firework.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Firework.java b/paper-api/src/main/java/org/bukkit/entity/Firework.java index cd03b2f348..b8a8c07538 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Firework.java +++ b/paper-api/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(); }