From 5397c5b7bea9b50cb22480c8cdac80252730749f Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 2 Aug 2019 19:31:53 +1000 Subject: [PATCH] SPIGOT-5231: ShotAtAngle API for Fireworks By: md_5 --- .../main/java/org/bukkit/entity/Firework.java | 18 ++++++++++++++++++ 1 file changed, 18 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 1c55f03389..d6ea16ec47 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Firework.java +++ b/paper-api/src/main/java/org/bukkit/entity/Firework.java @@ -25,4 +25,22 @@ public interface Firework extends Entity { * remaining fuse. */ void detonate(); + + /** + * Gets if the firework was shot at an angle (i.e. from a crossbow). + * + * A firework which was not shot at an angle will fly straight upwards. + * + * @return shot at angle status + */ + boolean isShotAtAngle(); + + /** + * Sets if the firework was shot at an angle (i.e. from a crossbow). + * + * A firework which was not shot at an angle will fly straight upwards. + * + * @param shotAtAngle + */ + void setShotAtAngle(boolean shotAtAngle); }