13
0
geforkt von Mirrors/Paper

SPIGOT-4338: breedCause API

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2018-09-01 19:27:49 +10:00
Ursprung 8fe8f9a60f
Commit 0eec8c8041

Datei anzeigen

@ -1,6 +1,25 @@
package org.bukkit.entity; package org.bukkit.entity;
import java.util.UUID;
/** /**
* Represents an Animal. * 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);
}