diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/FireworkMeta.java b/paper-api/src/main/java/org/bukkit/inventory/meta/FireworkMeta.java index 9bd15803cd..3bbf107355 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/FireworkMeta.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/FireworkMeta.java @@ -75,10 +75,21 @@ public interface FireworkMeta extends ItemMeta { */ boolean hasEffects(); + /** + * Get whether this firework has power set by component. + * + * @return true if it has power set, false if there are no power set + */ + boolean hasPower(); + /** * Gets the approximate height the firework will fly. + *
+ * Plugins should check that hasPower() returns true + * before calling this method. * * @return approximate flight height of the firework. + * @see #hasPower() */ int getPower();