Add ghast api (#7554)
This commit is contained in:
parent
31255d3db4
commit
7f9a9c35dd
2 changed files with 92 additions and 0 deletions
|
@ -175,6 +175,49 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ 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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Ghast.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Ghast.java
|
||||
@@ -0,0 +0,0 @@ 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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Panda.java
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue