mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
#1054: Add FireworkMeta#hasPower
This commit is contained in:
parent
4cfb565f06
commit
1ac7f9509d
1 changed files with 11 additions and 0 deletions
|
@ -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.
|
||||
* <br>
|
||||
* Plugins should check that hasPower() returns <code>true</code>
|
||||
* before calling this method.
|
||||
*
|
||||
* @return approximate flight height of the firework.
|
||||
* @see #hasPower()
|
||||
*/
|
||||
int getPower();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue