mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-30 23:11:06 +00:00
Ageable: added getMaxAge()
we'll probably need this...
This commit is contained in:
parent
dd9030f1f5
commit
2404d63b1f
@ -27,7 +27,10 @@ interface Ageable{
|
||||
|
||||
public function getAge() : int;
|
||||
|
||||
public function getMaxAge() : int;
|
||||
|
||||
/**
|
||||
* Must be in range 0 - getMaxAge()
|
||||
* @return $this
|
||||
*/
|
||||
public function setAge(int $age) : self;
|
||||
|
@ -38,6 +38,8 @@ trait AgeableTrait{
|
||||
|
||||
public function getAge() : int{ return $this->age; }
|
||||
|
||||
public function getMaxAge() : int{ return self::MAX_AGE; }
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user