Skip to content

BlockEventHelper ​

final class · pocketmine\block\utils\BlockEventHelper · source

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) : bool

form() ​

php
public static function form(\pocketmine\block\Block $oldState, \pocketmine\block\Block $newState, \pocketmine\block\Block $cause) : bool

grow() ​

php
public static function grow(\pocketmine\block\Block $oldState, \pocketmine\block\Block $newState, ?\pocketmine\player\Player $causingPlayer) : bool

melt() ​

php
public static function melt(\pocketmine\block\Block $oldState, \pocketmine\block\Block $newState) : bool

spread() ​

php
public static function spread(\pocketmine\block\Block $oldState, \pocketmine\block\Block $newState, \pocketmine\block\Block $source) : bool

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.