SPIGOT-5231: ShotAtAngle API for Fireworks

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-08-02 19:32:10 +10:00
parent ef099d6feb
commit c62558a09f
2 changed files with 18 additions and 1 deletions

View File

@@ -68,4 +68,14 @@ public class CraftFirework extends CraftEntity implements Firework {
public void detonate() {
getHandle().expectedLifespan = 0;
}
@Override
public boolean isShotAtAngle() {
return getHandle().i();
}
@Override
public void setShotAtAngle(boolean shotAtAngle) {
getHandle().getDataWatcher().set(EntityFireworks.d, shotAtAngle);
}
}