mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
and more typehints
This commit is contained in:
@ -99,7 +99,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRawUniqueId(){
|
||||
public function getRawUniqueId() : string{
|
||||
return $this->rawUUID;
|
||||
}
|
||||
|
||||
@ -431,7 +431,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
||||
return $this->getNameTag();
|
||||
}
|
||||
|
||||
public function getDrops(){
|
||||
public function getDrops() : array{
|
||||
return $this->inventory !== null ? array_values($this->inventory->getContents()) : [];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user