public interface Ageable extends EntityComponent
| Modifier and Type | Method and Description |
|---|---|
int |
getAge()
Gets the age of this animal.
|
boolean |
isAdult()
Returns true if the animal is an adult.
|
boolean |
isBaby()
Returns whether the animal is a baby
|
void |
setAdult()
Sets the age of the animal to an adult
|
void |
setAge(int age)
Sets the age of this animal.
|
@Nonnegative int getAge()
void setAge(@Nonnegative int age)
age - New ageboolean isBaby()
void setAdult()
boolean isAdult()
Copyright © 2017–2019 NukkitX. All rights reserved.