BlockEventHelper
Helper class to call block changing events and apply the results to the world. TODO: try to further reduce the amount of code duplication here - while this is much better than before, it's still very repetitive.
Methods
die()
php
public static function die(\pocketmine\block\Block $oldState, \pocketmine\block\Block $newState) : boolform()
php
public static function form(\pocketmine\block\Block $oldState, \pocketmine\block\Block $newState, \pocketmine\block\Block $cause) : boolgrow()
php
public static function grow(\pocketmine\block\Block $oldState, \pocketmine\block\Block $newState, ?\pocketmine\player\Player $causingPlayer) : boolmelt()
php
public static function melt(\pocketmine\block\Block $oldState, \pocketmine\block\Block $newState) : boolspread()
php
public static function spread(\pocketmine\block\Block $oldState, \pocketmine\block\Block $newState, \pocketmine\block\Block $source) : bool