aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-API-Patches-Unmapped/0161-Add-more-Witch-API.patch
diff options
context:
space:
mode:
authorKyle Wood <[email protected]>2021-04-24 17:01:33 -0500
committerKyle Wood <[email protected]>2021-04-25 18:37:43 -0500
commit3093b81fee3064603c368ab934eddf66ce304433 (patch)
treecb99f05b5f31de92c41af4cc40b4bef5f3cbf573 /Spigot-API-Patches-Unmapped/0161-Add-more-Witch-API.patch
parent1af696a05d21cbdd7b5a7170f95598c013257588 (diff)
downloadPaper-3093b81fee3064603c368ab934eddf66ce304433.tar.gz
Paper-3093b81fee3064603c368ab934eddf66ce304433.zip
Move patches
Diffstat (limited to 'Spigot-API-Patches-Unmapped/0161-Add-more-Witch-API.patch')
-rw-r--r--Spigot-API-Patches-Unmapped/0161-Add-more-Witch-API.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/Spigot-API-Patches-Unmapped/0161-Add-more-Witch-API.patch b/Spigot-API-Patches-Unmapped/0161-Add-more-Witch-API.patch
new file mode 100644
index 0000000000..10ae141b6d
--- /dev/null
+++ b/Spigot-API-Patches-Unmapped/0161-Add-more-Witch-API.patch
@@ -0,0 +1,54 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: BillyGalbreath <[email protected]>
+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
+index aa88aede6c4e66a608a63d07bc66d60357b0bee9..cd8d0a20e52ad35f659175e0d24a1dc0e92023b9 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;
+
+ import com.destroystokyo.paper.entity.RangedEntity;
+
++// Paper start
++import org.bukkit.inventory.ItemStack;
++import org.jetbrains.annotations.Nullable;
++// Paper end
++
+ /**
+ * Represents a Witch
+ */
+ public interface Witch extends Raider, RangedEntity { // Paper
++ // Paper start
++ /**
++ * 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
++ */
++ @Nullable
++ ItemStack getDrinkingPotion();
++
++ /**
++ * Set the potion the Witch should drink
++ *
++ * @param potion Potion to drink
++ */
++ void setDrinkingPotion(@Nullable ItemStack potion);
++ // Paper end
+ }