Add setPotionUseTimeLeft to Witch (#5597)
This commit is contained in:
@@ -37,6 +37,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ int getPotionUseTimeLeft();
|
+ 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
|
+ * Get the potion the Witch is drinking
|
||||||
+ *
|
+ *
|
||||||
+ * @return The potion the witch is drinking
|
+ * @return The potion the witch is drinking
|
||||||
|
|||||||
@@ -136,6 +136,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ return getHandle().getPotionUseTimeLeft();
|
+ return getHandle().getPotionUseTimeLeft();
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
+ @Override
|
||||||
|
+ public void setPotionUseTimeLeft(int ticks) {
|
||||||
|
+ getHandle().setPotionUseTimeLeft(ticks);
|
||||||
|
+ }
|
||||||
|
+
|
||||||
+ public ItemStack getDrinkingPotion() {
|
+ public ItemStack getDrinkingPotion() {
|
||||||
+ return CraftItemStack.asCraftMirror(getHandle().getItemInMainHand());
|
+ return CraftItemStack.asCraftMirror(getHandle().getItemInMainHand());
|
||||||
+ }
|
+ }
|
||||||
|
|||||||
Reference in New Issue
Block a user