mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 09:42:06 -07:00
Add ghast api (#7554)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user