Misc return typehints

This commit is contained in:
Dylan K. Taylor 2017-08-30 12:59:26 +01:00
parent 21f09d5fdb
commit 120cf56a47
4 changed files with 4 additions and 4 deletions

View File

@ -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];
}

View File

@ -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);
}

View File

@ -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]);
}

View File

@ -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;