SPIGOT-4705: Revamp Ageable interface and add Breedable interface

By: Shane Bee <shanebolenback@me.com>
This commit is contained in:
Bukkit/Spigot
2020-08-13 11:18:50 +10:00
parent 319278404d
commit 43a2f06e98
7 changed files with 70 additions and 12 deletions

View File

@@ -6,20 +6,24 @@ import org.jetbrains.annotations.Nullable;
/**
* Represents a Zombie.
*/
public interface Zombie extends Monster {
public interface Zombie extends Monster, Ageable {
/**
* Gets whether the zombie is a baby
*
* @return Whether the zombie is a baby
* @deprecated see {@link Ageable#isAdult()}
*/
@Deprecated
public boolean isBaby();
/**
* Sets whether the zombie is a baby
*
* @param flag Whether the zombie is a baby
* @deprecated see {@link Ageable#setBaby()} and {@link Ageable#setAdult()}
*/
@Deprecated
public void setBaby(boolean flag);
/**