mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-31 23:33: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 getAge() : int;
|
||||||
|
|
||||||
|
public function getMaxAge() : int;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Must be in range 0 - getMaxAge()
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setAge(int $age) : self;
|
public function setAge(int $age) : self;
|
||||||
|
@ -38,6 +38,8 @@ trait AgeableTrait{
|
|||||||
|
|
||||||
public function getAge() : int{ return $this->age; }
|
public function getAge() : int{ return $this->age; }
|
||||||
|
|
||||||
|
public function getMaxAge() : int{ return self::MAX_AGE; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user