diff --git a/Spigot-API-Patches/Add-more-Witch-API.patch b/Spigot-API-Patches/Add-more-Witch-API.patch index ba6170fa6..5ef789d94 100644 --- a/Spigot-API-Patches/Add-more-Witch-API.patch +++ b/Spigot-API-Patches/Add-more-Witch-API.patch @@ -37,6 +37,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + int getPotionUseTimeLeft(); + + /** ++ * Set time remaining (in ticks) that the Witch is drinking a potion. ++ *
++ * 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 diff --git a/Spigot-Server-Patches/Add-more-Witch-API.patch b/Spigot-Server-Patches/Add-more-Witch-API.patch index 056494c86..57c5028e0 100644 --- a/Spigot-Server-Patches/Add-more-Witch-API.patch +++ b/Spigot-Server-Patches/Add-more-Witch-API.patch @@ -136,6 +136,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + return getHandle().getPotionUseTimeLeft(); + } + ++ @Override ++ public void setPotionUseTimeLeft(int ticks) { ++ getHandle().setPotionUseTimeLeft(ticks); ++ } ++ + public ItemStack getDrinkingPotion() { + return CraftItemStack.asCraftMirror(getHandle().getItemInMainHand()); + }