SPIGOT-4338: breedCause API

This commit is contained in:
md_5 2018-09-01 19:27:49 +10:00
parent eaf05a2ab2
commit 9e031b7b21

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