SPIGOT-5231: ShotAtAngle API for Fireworks

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2019-08-02 19:31:53 +10:00
parent 361349ff60
commit 5397c5b7be

View file

@ -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);
}