mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Block: added a bunch of state manipulation APIs
This commit is contained in:
@ -63,6 +63,22 @@ class Leaves extends Transparent{
|
||||
return 0b1100;
|
||||
}
|
||||
|
||||
public function isNoDecay() : bool{ return $this->noDecay; }
|
||||
|
||||
/** @return $this */
|
||||
public function setNoDecay(bool $noDecay) : self{
|
||||
$this->noDecay = $noDecay;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isCheckDecay() : bool{ return $this->checkDecay; }
|
||||
|
||||
/** @return $this */
|
||||
public function setCheckDecay(bool $checkDecay) : self{
|
||||
$this->checkDecay = $checkDecay;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function blocksDirectSkyLight() : bool{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user