mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Misc return typehints
This commit is contained in:
parent
21f09d5fdb
commit
120cf56a47
@ -3734,7 +3734,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getWindowId(Inventory $inventory){
|
||||
public function getWindowId(Inventory $inventory) : int{
|
||||
if($this->windows->contains($inventory)){
|
||||
return $this->windows[$inventory];
|
||||
}
|
||||
|
@ -548,7 +548,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
||||
* @param int $flagId
|
||||
* @return bool
|
||||
*/
|
||||
public function getPlayerFlag(int $flagId){
|
||||
public function getPlayerFlag(int $flagId) : bool{
|
||||
return $this->getDataFlag(self::DATA_PLAYER_FLAGS, $flagId);
|
||||
}
|
||||
|
||||
|
@ -132,7 +132,7 @@ class EntityDamageEvent extends EntityEvent implements Cancellable{
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isApplicable(int $type){
|
||||
public function isApplicable(int $type) : bool{
|
||||
return isset($this->modifiers[$type]);
|
||||
}
|
||||
|
||||
|
@ -947,7 +947,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function save(bool $force = false){
|
||||
public function save(bool $force = false) : bool{
|
||||
|
||||
if(!$this->getAutoSave() and !$force){
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user