Add aggressive mob API (#9838)

This commit is contained in:
booky10
2023-11-11 22:17:36 +01:00
parent 5cca94a05e
commit cbce3a66aa
7 changed files with 77 additions and 4 deletions

View File

@@ -32,13 +32,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ * Sets that the Entity is "charging" up an attack, by raising its hands
+ *
+ * @param raiseHands Whether the entities hands are raised to charge attack
+ * @deprecated use {@link #isAggressive()}
+ */
+ @Deprecated
+ void setChargingAttack(boolean raiseHands);
+
+ /**
+ * Alias to {@link LivingEntity#isHandRaised()}, if the entity is charging an attack
+ * @return If entities hands are raised
+ * @deprecated use {@link #isHandRaised()}
+ */
+ @Deprecated
+ default boolean isChargingAttack() {
+ return isHandRaised();
+ }