Skip to content

BlockFormEvent ​

class · pocketmine\event\block\BlockFormEvent · source

Extends pocketmine\event\block\BaseBlockChangeEvent

Called when a new block forms, usually as the result of some action. This could be things like obsidian forming due to collision of lava and water.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\Block $block, \pocketmine\block\Block $newState, \pocketmine\block\Block $causingBlock)

getCausingBlock() ​

php
public function getCausingBlock() : \pocketmine\block\Block

Returns the block which caused the target block to form into a new state.

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