13
0
geforkt von Mirrors/Paper

Fireworks API's

Get the Entity being boosted
Get the firework launcher
Dieser Commit ist enthalten in:
Aikar 2016-12-28 01:18:55 -05:00
Ursprung 75274808b6
Commit d84384e895

Datei anzeigen

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