summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/entity/Husk.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit/entity/Husk.java')
-rw-r--r--src/main/java/org/bukkit/entity/Husk.java37
1 files changed, 36 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/entity/Husk.java b/src/main/java/org/bukkit/entity/Husk.java
index 17139a2e..85ada1c6 100644
--- a/src/main/java/org/bukkit/entity/Husk.java
+++ b/src/main/java/org/bukkit/entity/Husk.java
@@ -3,4 +3,39 @@ package org.bukkit.entity;
/**
* Represents a Husk - variant of {@link Zombie}.
*/
-public interface Husk extends Zombie { }
+public interface Husk extends Zombie {
+
+ /**
+ * Get if this entity is in the process of converting to a Zombie as a
+ * result of being underwater.
+ *
+ * @return conversion status
+ */
+ @Override
+ boolean isConverting();
+
+ /**
+ * Gets the amount of ticks until this entity will be converted to a Zombie
+ * as a result of being underwater.
+ *
+ * When this reaches 0, the entity will be converted.
+ *
+ * @return conversion time
+ * @throws IllegalStateException if {@link #isConverting()} is false.
+ */
+ @Override
+ int getConversionTime();
+
+ /**
+ * Sets the amount of ticks until this entity will be converted to a Zombie
+ * as a result of being underwater.
+ *
+ * When this reaches 0, the entity will be converted. A value of less than 0
+ * will stop the current conversion process without converting the current
+ * entity.
+ *
+ * @param time new conversion time
+ */
+ @Override
+ void setConversionTime(int time);
+}