From 9e031b7b21da70f3ad1de193432143ad189797c8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 1 Sep 2018 19:27:49 +1000 Subject: SPIGOT-4338: breedCause API --- src/main/java/org/bukkit/entity/Animals.java | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'src') 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); +} -- cgit v1.2.3