SPIGOT-4705: Revamp Ageable interface and add Breedable interface
By: Shane Bee <shanebolenback@me.com>
This commit is contained in:
@@ -3,19 +3,23 @@ package org.bukkit.entity;
|
||||
/**
|
||||
* Represents a Zoglin.
|
||||
*/
|
||||
public interface Zoglin extends Monster {
|
||||
public interface Zoglin extends Monster, Ageable {
|
||||
|
||||
/**
|
||||
* Gets whether the zoglin is a baby
|
||||
*
|
||||
* @return Whether the zoglin is a baby
|
||||
* @deprecated see {@link Ageable#isAdult()}
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean isBaby();
|
||||
|
||||
/**
|
||||
* Sets whether the zoglin is a baby
|
||||
*
|
||||
* @param flag Whether the zoglin is a baby
|
||||
* @deprecated see {@link Ageable#setBaby()} and {@link Ageable#setAdult()}
|
||||
*/
|
||||
@Deprecated
|
||||
public void setBaby(boolean flag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user