mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 00:29:54 +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
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function getWindowId(Inventory $inventory){
|
public function getWindowId(Inventory $inventory) : int{
|
||||||
if($this->windows->contains($inventory)){
|
if($this->windows->contains($inventory)){
|
||||||
return $this->windows[$inventory];
|
return $this->windows[$inventory];
|
||||||
}
|
}
|
||||||
|
@ -548,7 +548,7 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
|||||||
* @param int $flagId
|
* @param int $flagId
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function getPlayerFlag(int $flagId){
|
public function getPlayerFlag(int $flagId) : bool{
|
||||||
return $this->getDataFlag(self::DATA_PLAYER_FLAGS, $flagId);
|
return $this->getDataFlag(self::DATA_PLAYER_FLAGS, $flagId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ class EntityDamageEvent extends EntityEvent implements Cancellable{
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function isApplicable(int $type){
|
public function isApplicable(int $type) : bool{
|
||||||
return isset($this->modifiers[$type]);
|
return isset($this->modifiers[$type]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -947,7 +947,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function save(bool $force = false){
|
public function save(bool $force = false) : bool{
|
||||||
|
|
||||||
if(!$this->getAutoSave() and !$force){
|
if(!$this->getAutoSave() and !$force){
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user