Block: populate missing return type info

This commit is contained in:
Dylan K. Taylor 2020-01-19 17:02:03 +00:00
parent e544bc0d4b
commit ccbcc14600
3 changed files with 13 additions and 0 deletions

View File

@ -76,6 +76,11 @@ class Bed extends Transparent{
return ($this->meta & self::BITFLAG_OCCUPIED) !== 0;
}
/**
* @param bool $occupied
*
* @return void
*/
public function setOccupied(bool $occupied = true){
if($occupied){
$this->meta |= self::BITFLAG_OCCUPIED;

View File

@ -434,6 +434,9 @@ abstract class Liquid extends Transparent{
return ($decay >= 0 && $blockDecay >= $decay) ? $decay : $blockDecay;
}
/**
* @return void
*/
protected function checkForHarden(){
}

View File

@ -74,6 +74,11 @@ class TNT extends Solid{
}
}
/**
* @param int $fuse
*
* @return void
*/
public function ignite(int $fuse = 80){
$this->getLevel()->setBlock($this, BlockFactory::get(Block::AIR), true);