Add missing Piglin Dancing API (#8894)
This commit is contained in:
parent
abbdae4f53
commit
8eea7a4d45
2 changed files with 46 additions and 0 deletions
|
@ -8,6 +8,7 @@ Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
|
|||
Co-authored-by: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Co-authored-by: SoSeDiK <mrsosedik@gmail.com>
|
||||
Co-authored-by: booky10 <boooky10@gmail.com>
|
||||
Co-authored-by: Amin <amin.haddou@frg.wwschool.de>
|
||||
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/entity/ai/VanillaGoal.java b/src/main/java/com/destroystokyo/paper/entity/ai/VanillaGoal.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
|
@ -762,6 +763,28 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ * @return is charging
|
||||
+ */
|
||||
+ boolean isChargingCrossbow();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets whether the Piglin is dancing or not
|
||||
+ *
|
||||
+ * @param dancing is dancing
|
||||
+ */
|
||||
+ void setDancing(boolean dancing);
|
||||
+
|
||||
+ /**
|
||||
+ * Causes the piglin to dance for a
|
||||
+ * specified amount of time
|
||||
+ *
|
||||
+ * @param duration duration of the dance in ticks
|
||||
+ */
|
||||
+ void setDancing(long duration);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets if the piglin is currently dancing
|
||||
+ *
|
||||
+ * @return is dancing
|
||||
+ */
|
||||
+ boolean isDancing();
|
||||
+ // Paper end
|
||||
+
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue