diff options
-rw-r--r-- | src/main/java/org/bukkit/entity/Animals.java | 21 |
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); +} |