Block: added flame encouragement and flammability properties

This commit is contained in:
Dylan K. Taylor
2018-03-13 11:07:05 +00:00
parent aa6666872a
commit e66b1953de
20 changed files with 167 additions and 0 deletions

View File

@ -497,6 +497,25 @@ class Block extends Position implements BlockIds, Metadatable{
return 0;
}
/**
* Returns the chance that the block will catch fire from nearby fire sources. Higher values lead to faster catching
* fire.
*
* @return int
*/
public function getFlameEncouragement() : int{
return 0;
}
/**
* Returns the base flammability of this block. Higher values lead to the block burning away more quickly.
*
* @return int
*/
public function getFlammability() : int{
return 0;
}
/**
* Returns the Block on the side $side, works like Vector3::getSide()
*