mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Hinting up Entity API to PHP 7.2 standards
This commit is contained in:
@ -100,7 +100,7 @@ class ExperienceOrb extends Entity{
|
||||
*/
|
||||
protected $targetPlayerRuntimeId = null;
|
||||
|
||||
protected function initEntity(){
|
||||
protected function initEntity() : void{
|
||||
parent::initEntity();
|
||||
|
||||
$this->age = $this->namedtag->getShort("Age", 0);
|
||||
@ -115,7 +115,7 @@ class ExperienceOrb extends Entity{
|
||||
$this->setXpValue($value);
|
||||
}
|
||||
|
||||
public function saveNBT(){
|
||||
public function saveNBT() : void{
|
||||
parent::saveNBT();
|
||||
|
||||
$this->namedtag->setShort("Age", $this->age);
|
||||
@ -210,7 +210,7 @@ class ExperienceOrb extends Entity{
|
||||
return $hasUpdate;
|
||||
}
|
||||
|
||||
protected function tryChangeMovement(){
|
||||
protected function tryChangeMovement() : void{
|
||||
$this->checkObstruction($this->x, $this->y, $this->z);
|
||||
parent::tryChangeMovement();
|
||||
}
|
||||
|
Reference in New Issue
Block a user