SPIGOT-4338: breedCause API

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2018-09-01 19:27:49 +10:00
parent 8fe8f9a60f
commit 0eec8c8041

View file

@ -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);
}