mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 11:27:35 +01:00
Fireworks API's
Get the Entity being boosted Get the firework launcher
This commit is contained in:
parent
75274808b6
commit
d84384e895
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user