mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 09:49:50 +00:00
Block: populate missing return type info
This commit is contained in:
parent
e544bc0d4b
commit
ccbcc14600
@ -76,6 +76,11 @@ class Bed extends Transparent{
|
|||||||
return ($this->meta & self::BITFLAG_OCCUPIED) !== 0;
|
return ($this->meta & self::BITFLAG_OCCUPIED) !== 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param bool $occupied
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
public function setOccupied(bool $occupied = true){
|
public function setOccupied(bool $occupied = true){
|
||||||
if($occupied){
|
if($occupied){
|
||||||
$this->meta |= self::BITFLAG_OCCUPIED;
|
$this->meta |= self::BITFLAG_OCCUPIED;
|
||||||
|
@ -434,6 +434,9 @@ abstract class Liquid extends Transparent{
|
|||||||
return ($decay >= 0 && $blockDecay >= $decay) ? $decay : $blockDecay;
|
return ($decay >= 0 && $blockDecay >= $decay) ? $decay : $blockDecay;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
protected function checkForHarden(){
|
protected function checkForHarden(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -74,6 +74,11 @@ class TNT extends Solid{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param int $fuse
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
public function ignite(int $fuse = 80){
|
public function ignite(int $fuse = 80){
|
||||||
$this->getLevel()->setBlock($this, BlockFactory::get(Block::AIR), true);
|
$this->getLevel()->setBlock($this, BlockFactory::get(Block::AIR), true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user