From eb29f4b571ef97747e9eb3bf3586e0de33ee00a5 Mon Sep 17 00:00:00 2001 From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com> Date: Wed, 18 May 2022 20:46:01 -0400 Subject: [PATCH] Deprecate set/doesBounce from Projectile (#7800) --- .../api/Fix-Spigot-annotation-mistakes.patch | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/patches/api/Fix-Spigot-annotation-mistakes.patch b/patches/api/Fix-Spigot-annotation-mistakes.patch index 720fd6689d..b9bbe2e621 100644 --- a/patches/api/Fix-Spigot-annotation-mistakes.patch +++ b/patches/api/Fix-Spigot-annotation-mistakes.patch @@ -339,6 +339,29 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 public boolean canSee(@NotNull Entity entity); /** +diff --git a/src/main/java/org/bukkit/entity/Projectile.java b/src/main/java/org/bukkit/entity/Projectile.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/org/bukkit/entity/Projectile.java ++++ b/src/main/java/org/bukkit/entity/Projectile.java +@@ -0,0 +0,0 @@ public interface Projectile extends Entity { + * If a small fireball does not bounce it will set the target on fire. + * + * @return true if it should bounce. ++ * @deprecated Does not do anything + */ ++ @Deprecated(forRemoval = true) // Paper + public boolean doesBounce(); + + /** +@@ -0,0 +0,0 @@ public interface Projectile extends Entity { + * something. + * + * @param doesBounce whether or not it should bounce. ++ * @deprecated Does not do anything + */ ++ @Deprecated(forRemoval = true) // Paper + public void setBounce(boolean doesBounce); + } diff --git a/src/main/java/org/bukkit/event/enchantment/PrepareItemEnchantEvent.java b/src/main/java/org/bukkit/event/enchantment/PrepareItemEnchantEvent.java index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 --- a/src/main/java/org/bukkit/event/enchantment/PrepareItemEnchantEvent.java