diff options
author | Owen <[email protected]> | 2022-05-18 20:46:01 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-19 01:46:01 +0100 |
commit | 9b492cff368f2606e769f90e814e7ed378c0b52a (patch) | |
tree | 036a77a75981c3b994f95e5a6971caafc5ba84d0 | |
parent | ca623865b0244a6cb217820dc2cd9bed21cea5cd (diff) | |
download | Paper-9b492cff368f2606e769f90e814e7ed378c0b52a.tar.gz Paper-9b492cff368f2606e769f90e814e7ed378c0b52a.zip |
Deprecate set/doesBounce from Projectile (#7800)
-rw-r--r-- | patches/api/0175-Fix-Spigot-annotation-mistakes.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/api/0175-Fix-Spigot-annotation-mistakes.patch b/patches/api/0175-Fix-Spigot-annotation-mistakes.patch index 6373ebc282..a745e3e320 100644 --- a/patches/api/0175-Fix-Spigot-annotation-mistakes.patch +++ b/patches/api/0175-Fix-Spigot-annotation-mistakes.patch @@ -339,6 +339,29 @@ index 98b856d068c765a277d1e218a04e05588e18fdcb..2c3aba0b8d89d74bfa22ae01232712c8 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 c854860c13912f9a8707eb825cca23763d1323a6..a523fca4baab447181ef91df67fa69b24e010149 100644 +--- a/src/main/java/org/bukkit/entity/Projectile.java ++++ b/src/main/java/org/bukkit/entity/Projectile.java +@@ -29,7 +29,9 @@ 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(); + + /** +@@ -37,6 +39,8 @@ 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 2ff1b1308571d8f8056d3359e8a8ba4a589c3726..8eb6f4090578d9e1b12aff813840108fdeece730 100644 --- a/src/main/java/org/bukkit/event/enchantment/PrepareItemEnchantEvent.java |