summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-09-01 19:27:49 +1000
committermd_5 <git@md-5.net>2018-09-01 19:27:49 +1000
commit9e031b7b21da70f3ad1de193432143ad189797c8 (patch)
tree4ddd7acd49040e527eb868acb9ecfaac261a7ed7 /src/main/java/org
parenteaf05a2ab257f19498826db6964039d9b1246afd (diff)
downloadbukkit-9e031b7b21da70f3ad1de193432143ad189797c8.tar
bukkit-9e031b7b21da70f3ad1de193432143ad189797c8.tar.gz
bukkit-9e031b7b21da70f3ad1de193432143ad189797c8.tar.lz
bukkit-9e031b7b21da70f3ad1de193432143ad189797c8.tar.xz
bukkit-9e031b7b21da70f3ad1de193432143ad189797c8.zip
SPIGOT-4338: breedCause API
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/entity/Animals.java21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/entity/Animals.java b/src/main/java/org/bukkit/entity/Animals.java
index f0dc157d..6e214bf4 100644
--- a/src/main/java/org/bukkit/entity/Animals.java
+++ b/src/main/java/org/bukkit/entity/Animals.java
@@ -1,6 +1,25 @@
package org.bukkit.entity;
+import java.util.UUID;
+
/**
* Represents an Animal.
*/
-public interface Animals extends Ageable {}
+public interface Animals extends Ageable {
+
+ /**
+ * Get the UUID of the entity that caused this entity to enter the
+ * {@link #canBreed()} state.
+ *
+ * @return uuid if set, or null
+ */
+ UUID getBreedCause();
+
+ /**
+ * Set the UUID of the entity that caused this entity to enter the
+ * {@link #canBreed()} state.
+ *
+ * @param uuid new uuid, or null
+ */
+ void setBreedCause(UUID uuid);
+}