mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
SPIGOT-4338: breedCause API
This commit is contained in:
parent
eaf05a2ab2
commit
9e031b7b21
1 changed files with 20 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue