Skip to content

EntityBlockChangeEvent ​

class · pocketmine\event\entity\EntityBlockChangeEvent · source

Extends EntityEvent
Implements Cancellable

Called when an Entity, excluding players, changes a block directly

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Entity $entity, \pocketmine\block\Block $from, \pocketmine\block\Block $to)

getBlock() ​

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

getTo() ​

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

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