Fireworks API's

Get the Entity being boosted
Get the firework launcher
This commit is contained in:
Aikar 2016-12-28 01:18:55 -05:00
parent 75274808b6
commit d84384e895

View File

@ -111,4 +111,20 @@ public interface Firework extends Projectile {
* @param shotAtAngle the new shotAtAngle
*/
void setShotAtAngle(boolean shotAtAngle);
// Paper start
@org.jetbrains.annotations.Nullable
public java.util.UUID getSpawningEntity();
/**
* If this firework is boosting an entity, return it
* @deprecated use {@link #getAttachedTo()}
* @see #setAttachedTo(LivingEntity)
* @return The entity being boosted
*/
@org.jetbrains.annotations.Nullable
@Deprecated
default LivingEntity getBoostedEntity() {
return getAttachedTo();
}
// Paper end
}