Block: added isFlammable()

This commit is contained in:
Dylan K. Taylor 2018-03-15 11:47:07 +00:00
parent 64540f36be
commit f22ad14c67

View File

@ -525,6 +525,15 @@ class Block extends Position implements BlockIds, Metadatable{
return false;
}
/**
* Returns whether this block can catch fire.
*
* @return bool
*/
public function isFlammable() : bool{
return $this->getFlammability() > 0;
}
/**
* Returns the Block on the side $side, works like Vector3::getSide()
*