mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 03:22:19 +01:00
SPIGOT-4338: breedCause API
By: md_5 <git@md-5.net>
This commit is contained in:
parent
8fe8f9a60f
commit
0eec8c8041
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…
Reference in a new issue