Add aggressive mob API (#9838)
This commit is contained in:
parent
5cca94a05e
commit
cbce3a66aa
7 changed files with 77 additions and 4 deletions
|
@ -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();
|
||||
+ }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue