mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 03:22:19 +01:00
SPIGOT-5231: ShotAtAngle API for Fireworks
By: md_5 <git@md-5.net>
This commit is contained in:
parent
361349ff60
commit
5397c5b7be
1 changed files with 18 additions and 0 deletions
|
@ -25,4 +25,22 @@ public interface Firework extends Entity {
|
||||||
* remaining fuse.
|
* remaining fuse.
|
||||||
*/
|
*/
|
||||||
void detonate();
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue