aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0048-Fireworks-API-s.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0048-Fireworks-API-s.patch')
-rw-r--r--patches/api/0048-Fireworks-API-s.patch11
1 files changed, 8 insertions, 3 deletions
diff --git a/patches/api/0048-Fireworks-API-s.patch b/patches/api/0048-Fireworks-API-s.patch
index a0ed753ac6..126f0b838d 100644
--- a/patches/api/0048-Fireworks-API-s.patch
+++ b/patches/api/0048-Fireworks-API-s.patch
@@ -7,10 +7,10 @@ Get the Entity being boosted
Get the firework launcher
diff --git a/src/main/java/org/bukkit/entity/Firework.java b/src/main/java/org/bukkit/entity/Firework.java
-index 05e86cb9d826cdf14490fa649348d46c51adbfdb..d616d5941b3c7b85e350e845901da798601b9a3c 100644
+index e750b34d7d067a5f2f5587853274b6f479cc4fd6..0d31aa0b22cf1e849572294e2cfe38b48c9210af 100644
--- a/src/main/java/org/bukkit/entity/Firework.java
+++ b/src/main/java/org/bukkit/entity/Firework.java
-@@ -43,4 +43,15 @@ public interface Firework extends Projectile {
+@@ -111,4 +111,20 @@ public interface Firework extends Projectile {
* @param shotAtAngle the new shotAtAngle
*/
void setShotAtAngle(boolean shotAtAngle);
@@ -20,9 +20,14 @@ index 05e86cb9d826cdf14490fa649348d46c51adbfdb..d616d5941b3c7b85e350e845901da798
+ 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
-+ public LivingEntity getBoostedEntity();
++ @Deprecated
++ default LivingEntity getBoostedEntity() {
++ return getAttachedTo();
++ }
+ // Paper end
}