2019-06-06 15:36:57 +00:00
|
|
|
From 2c65ebc830c59e5bb2c88fd1100969ae7c6c85ca 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-06-06 15:36:57 +00:00
|
|
|
index aa88aede6..cd8d0a20e 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
|
2019-03-20 00:28:15 +00:00
|
|
|
@@ -2,8 +2,43 @@ package org.bukkit.entity;
|
2018-10-19 03:24:09 +00:00
|
|
|
|
|
|
|
import com.destroystokyo.paper.entity.RangedEntity;
|
|
|
|
|
|
|
|
+// Paper start
|
|
|
|
+import org.bukkit.inventory.ItemStack;
|
2019-03-20 00:28:15 +00:00
|
|
|
+import org.jetbrains.annotations.Nullable;
|
2018-10-19 03:24:09 +00:00
|
|
|
+// Paper end
|
|
|
|
+
|
|
|
|
/**
|
|
|
|
* Represents a Witch
|
|
|
|
*/
|
2019-04-23 04:47:07 +00:00
|
|
|
public interface Witch extends Raider, RangedEntity { // Paper
|
|
|
|
+ // Paper start
|
2018-10-19 03:24:09 +00:00
|
|
|
+ /**
|
|
|
|
+ * 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
|
|
|
|
+ */
|
2019-03-20 00:28:15 +00:00
|
|
|
+ @Nullable
|
2018-10-19 03:24:09 +00:00
|
|
|
+ ItemStack getDrinkingPotion();
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Set the potion the Witch should drink
|
|
|
|
+ *
|
|
|
|
+ * @param potion Potion to drink
|
|
|
|
+ */
|
|
|
|
+ void setDrinkingPotion(@Nullable ItemStack potion);
|
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
--
|
2019-04-23 04:47:07 +00:00
|
|
|
2.21.0
|
2018-10-19 03:24:09 +00:00
|
|
|
|