diff --git a/paper-api/src/main/java/org/bukkit/entity/Animals.java b/paper-api/src/main/java/org/bukkit/entity/Animals.java index f0dc157dc3..6e214bf487 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Animals.java +++ b/paper-api/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); +}