Add since to deprecated for removals (#10848)

This commit is contained in:
Jake Potrebic 2024-06-04 12:40:18 -07:00 committed by GitHub
parent 4f13be937e
commit 79c1ce1844
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 144 additions and 141 deletions

View file

@ -8,7 +8,7 @@ and to perform an attack.
diff --git a/src/main/java/com/destroystokyo/paper/entity/RangedEntity.java b/src/main/java/com/destroystokyo/paper/entity/RangedEntity.java
new file mode 100644
index 0000000000000000000000000000000000000000..a087a04c525ea14b197c65063b43ebf097ddc5c2
index 0000000000000000000000000000000000000000..46e0e62d620def237dab44ad24708f1b93a8a1a7
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/entity/RangedEntity.java
@@ -0,0 +1,35 @@
@ -34,7 +34,7 @@ index 0000000000000000000000000000000000000000..a087a04c525ea14b197c65063b43ebf0
+ * @param raiseHands Whether the entities hands are raised to charge attack
+ * @deprecated use {@link #setAggressive(boolean)}
+ */
+ @Deprecated
+ @Deprecated(since = "1.19.2")
+ void setChargingAttack(boolean raiseHands);
+
+ /**
@ -42,7 +42,7 @@ index 0000000000000000000000000000000000000000..a087a04c525ea14b197c65063b43ebf0
+ * @return If entities hands are raised
+ * @deprecated use {@link #isHandRaised()}
+ */
+ @Deprecated
+ @Deprecated(since = "1.19.2")
+ default boolean isChargingAttack() {
+ return isHandRaised();
+ }