2019-02-23 17:17:41 +00:00
|
|
|
From e2fce2bde4ea1d8fc5335c5de982d933d770f5b1 Mon Sep 17 00:00:00 2001
|
2018-10-19 03:24:09 +00:00
|
|
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
|
|
|
Date: Fri, 12 Oct 2018 03:47:26 -0500
|
|
|
|
Subject: [PATCH] Add more Witch API
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Witch.java b/src/main/java/org/bukkit/entity/Witch.java
|
2019-01-01 03:15:55 +00:00
|
|
|
index 4b27f689..64ec8409 100644
|
2018-10-19 03:24:09 +00:00
|
|
|
--- a/src/main/java/org/bukkit/entity/Witch.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/Witch.java
|
|
|
|
@@ -2,8 +2,42 @@ package org.bukkit.entity;
|
|
|
|
|
|
|
|
import com.destroystokyo.paper.entity.RangedEntity;
|
|
|
|
|
|
|
|
+// Paper start
|
|
|
|
+import org.bukkit.inventory.ItemStack;
|
|
|
|
+import javax.annotation.Nullable;
|
|
|
|
+// Paper end
|
|
|
|
+
|
|
|
|
/**
|
|
|
|
* Represents a Witch
|
|
|
|
*/
|
|
|
|
-public interface Witch extends Monster, RangedEntity { // Paper
|
|
|
|
+// Paper start
|
|
|
|
+public interface Witch extends Monster, RangedEntity {
|
|
|
|
+ /**
|
|
|
|
+ * Check if Witch is drinking a potion
|
|
|
|
+ *
|
|
|
|
+ * @return True if drinking a potion
|
|
|
|
+ */
|
|
|
|
+ boolean isDrinkingPotion();
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Get time remaining (in ticks) the Witch is drinking a potion
|
|
|
|
+ *
|
|
|
|
+ * @return Time remaining (in ticks)
|
|
|
|
+ */
|
|
|
|
+ int getPotionUseTimeLeft();
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Get the potion the Witch is drinking
|
|
|
|
+ *
|
|
|
|
+ * @return The potion the witch is drinking
|
|
|
|
+ */
|
|
|
|
+ ItemStack getDrinkingPotion();
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Set the potion the Witch should drink
|
|
|
|
+ *
|
|
|
|
+ * @param potion Potion to drink
|
|
|
|
+ */
|
|
|
|
+ void setDrinkingPotion(@Nullable ItemStack potion);
|
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
--
|
2019-01-01 03:15:55 +00:00
|
|
|
2.20.1
|
2018-10-19 03:24:09 +00:00
|
|
|
|