mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 12:12:08 -07:00
patches
fix
This commit is contained in:
64
patches/api/Add-more-Witch-API.patch
Normal file
64
patches/api/Add-more-Witch-API.patch
Normal file
@@ -0,0 +1,64 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
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
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Witch.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Witch.java
|
||||
@@ -0,0 +0,0 @@ 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();
|
||||
+
|
||||
+ /**
|
||||
+ * 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
|
||||
+ */
|
||||
+ @Nullable
|
||||
+ ItemStack getDrinkingPotion();
|
||||
+
|
||||
+ /**
|
||||
+ * Set the potion the Witch should drink
|
||||
+ *
|
||||
+ * @param potion Potion to drink
|
||||
+ */
|
||||
+ void setDrinkingPotion(@Nullable ItemStack potion);
|
||||
+ // Paper end
|
||||
}
|
Reference in New Issue
Block a user