geforkt von Mirrors/Paper
Fireworks API's
Get the Entity being boosted Get the firework launcher
Dieser Commit ist enthalten in:
Ursprung
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
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren