mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
From c1a6fb2046fc75a43cb341155a469a1b22a1243d Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
Date: Fri, 3 May 2019 23:45:26 -0500
|
|
Subject: [PATCH] Expose Animals#isBreedingItem(ItemStack)
|
|
|
|
---
|
|
src/main/java/org/bukkit/entity/Animals.java | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Animals.java b/src/main/java/org/bukkit/entity/Animals.java
|
|
index 6e214bf4..1295a41e 100644
|
|
--- a/src/main/java/org/bukkit/entity/Animals.java
|
|
+++ b/src/main/java/org/bukkit/entity/Animals.java
|
|
@@ -22,4 +22,14 @@ public interface Animals extends Ageable {
|
|
* @param uuid new uuid, or null
|
|
*/
|
|
void setBreedCause(UUID uuid);
|
|
+
|
|
+ // Purpur start
|
|
+ /**
|
|
+ * Whether or not this animal can be bred using this ItemStack
|
|
+ *
|
|
+ * @param itemstack ItemStack to check
|
|
+ * @return True if animal can be bred with ItemStack
|
|
+ */
|
|
+ boolean isBreedingItem(org.bukkit.inventory.ItemStack itemstack);
|
|
+ // Purpur end
|
|
}
|
|
--
|
|
2.20.1
|
|
|