Skip to content

BlockSpreadEvent ​

class · pocketmine\event\block\BlockSpreadEvent · source

Extends pocketmine\event\block\BaseBlockChangeEvent

Called when a block spreads to another block, such as grass spreading to nearby dirt blocks.

Methods ​

__construct() ​

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

getSource() ​

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

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