Add setPotionUseTimeLeft to Witch (#5597)
This commit is contained in:
parent
239935d183
commit
53d71b7179
2 changed files with 19 additions and 4 deletions
|
@ -5,10 +5,10 @@ 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
|
||||
index aa88aede6c4e66a608a63d07bc66d60357b0bee9..cd8d0a20e52ad35f659175e0d24a1dc0e92023b9 100644
|
||||
index aa88aede6c4e66a608a63d07bc66d60357b0bee9..b7f9db08fb2e4633e1dfad5c752451f6ac23d437 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Witch.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Witch.java
|
||||
@@ -2,8 +2,43 @@ package org.bukkit.entity;
|
||||
@@ -2,8 +2,53 @@ package org.bukkit.entity;
|
||||
|
||||
import com.destroystokyo.paper.entity.RangedEntity;
|
||||
|
||||
|
@ -37,6 +37,16 @@ index aa88aede6c4e66a608a63d07bc66d60357b0bee9..cd8d0a20e52ad35f659175e0d24a1dc0
|
|||
+ int getPotionUseTimeLeft();
|
||||
+
|
||||
+ /**
|
||||
+ * Set time remaining (in ticks) that the Witch is drinking a potion.
|
||||
+ * <p>
|
||||
+ * This only has an effect while the Witch is drinking a potion.
|
||||
+ *
|
||||
+ * @param ticks Time in ticks remaining
|
||||
+ * @see #isDrinkingPotion
|
||||
+ */
|
||||
+ void setPotionUseTimeLeft(int ticks);
|
||||
+
|
||||
+ /**
|
||||
+ * Get the potion the Witch is drinking
|
||||
+ *
|
||||
+ * @return The potion the witch is drinking
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue