aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0349-More-Projectile-API.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0349-More-Projectile-API.patch')
-rw-r--r--patches/api/0349-More-Projectile-API.patch31
1 files changed, 27 insertions, 4 deletions
diff --git a/patches/api/0349-More-Projectile-API.patch b/patches/api/0349-More-Projectile-API.patch
index dcad065186..ba63dbcd3b 100644
--- a/patches/api/0349-More-Projectile-API.patch
+++ b/patches/api/0349-More-Projectile-API.patch
@@ -6,14 +6,37 @@ Subject: [PATCH] More Projectile API
Co-authored-by: Nassim Jahnke <[email protected]>
diff --git a/src/main/java/org/bukkit/entity/AbstractArrow.java b/src/main/java/org/bukkit/entity/AbstractArrow.java
-index e8e56e89e32d84af0639fe2e9b0eeabd747b6007..2d7521b71ec16e1b229bbe4c05d51673720df475 100644
+index 839e5b7df49f42b5fec7729997bef3370ba36d80..b36298679d6d52d09fe4bb8e52e19e18f6df742a 100644
--- a/src/main/java/org/bukkit/entity/AbstractArrow.java
+++ b/src/main/java/org/bukkit/entity/AbstractArrow.java
-@@ -174,5 +174,43 @@ public interface AbstractArrow extends Projectile {
- ALLOWED,
+@@ -130,17 +130,21 @@ public interface AbstractArrow extends Projectile {
+ * Gets the ItemStack which will be picked up from this arrow.
+ *
+ * @return The picked up ItemStack
++ * @deprecated use {@link #getItemStack()}
+ */
+ @NotNull
+ @ApiStatus.Experimental
++ @Deprecated(forRemoval = true, since = "1.20.4") // Paper
+ public ItemStack getItem();
+
+ /**
+ * Sets the ItemStack which will be picked up from this arrow.
+ *
+ * @param item ItemStack set to be picked up
++ * @deprecated until 1.20.5 when the behavior is more defined
+ */
+ @ApiStatus.Experimental
++ @Deprecated // Paper - remove in 1.20.5
+ public void setItem(@NotNull ItemStack item);
+
+ /**
+@@ -194,4 +198,44 @@ public interface AbstractArrow extends Projectile {
CREATIVE_ONLY;
}
+ // Paper end
+
++ // Paper start - more projectile API
+ /**
+ * Gets the ItemStack for this arrow.
+ *
@@ -51,7 +74,7 @@ index e8e56e89e32d84af0639fe2e9b0eeabd747b6007..2d7521b71ec16e1b229bbe4c05d51673
+ * @param sound sound that is played
+ */
+ void setHitSound(@NotNull org.bukkit.Sound sound);
- // Paper end
++ // Paper end - more projectile API
}
diff --git a/src/main/java/org/bukkit/entity/Firework.java b/src/main/java/org/bukkit/entity/Firework.java
index 0d31aa0b22cf1e849572294e2cfe38b48c9210af..217d348ad0bbef720b25d3b507a55ca8105b7731 100644