@@ -75,10 +75,21 @@ public interface FireworkMeta extends ItemMeta {
|
|||||||
*/
|
*/
|
||||||
boolean hasEffects();
|
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.
|
* 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.
|
* @return approximate flight height of the firework.
|
||||||
|
* @see #hasPower()
|
||||||
*/
|
*/
|
||||||
int getPower();
|
int getPower();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user