Add ghast api (#7554)
This commit is contained in:
parent
d9bf5e740b
commit
c34fb0942a
2 changed files with 92 additions and 0 deletions
|
@ -175,6 +175,49 @@ index 498e182846b81d50b3a594254e8b341fb23e8763..3826363a1954afcddaadec7f96ac1830
|
|||
+ public boolean isFaceplanted();
|
||||
+ // Paper end - Add more fox behavior API
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/entity/Ghast.java b/src/main/java/org/bukkit/entity/Ghast.java
|
||||
index 3f5edf76ce303502cf4eeeb76f22f21f568dad5a..5930dc682c5c9273c748595e487b364b818a2fac 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Ghast.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Ghast.java
|
||||
@@ -3,4 +3,37 @@ package org.bukkit.entity;
|
||||
/**
|
||||
* Represents a Ghast.
|
||||
*/
|
||||
-public interface Ghast extends Flying {}
|
||||
+// Paper start
|
||||
+public interface Ghast extends Flying {
|
||||
+
|
||||
+ /**
|
||||
+ * Returns whether the ghast is charging an attack.
|
||||
+ *
|
||||
+ * @return whether the ghast is charging an attack
|
||||
+ */
|
||||
+ boolean isCharging();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets whether the ghast is charging an attack.
|
||||
+ * This determines whether the client displays the charging animation.
|
||||
+ *
|
||||
+ * @param charging whether the ghast is charging an attack
|
||||
+ */
|
||||
+ void setCharging(boolean charging);
|
||||
+
|
||||
+ /**
|
||||
+ * Returns the explosion power of shot fireballs.
|
||||
+ *
|
||||
+ * @return explosion power of shot fireballs
|
||||
+ */
|
||||
+ int getExplosionPower();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets the explosion power of shot fireballs.
|
||||
+ *
|
||||
+ * @param explosionPower explosion power of shot fireballs
|
||||
+ * @throws IllegalArgumentException if the explosion power is less than 0 or greater than 127
|
||||
+ */
|
||||
+ void setExplosionPower(int explosionPower);
|
||||
+ // Paper end
|
||||
+}
|
||||
diff --git a/src/main/java/org/bukkit/entity/Panda.java b/src/main/java/org/bukkit/entity/Panda.java
|
||||
index a6a7429ed2e1eefb2b12b7480ed74fcc3963a864..1dcc2c8f4899da029af8b1c1b2ff1b5e368e82c1 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Panda.java
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue