PressurePlateUpdateEvent
Extends pocketmine\event\block\BaseBlockChangeEvent
Called whenever the list of entities on a pressure plate changes. Depending on the type of pressure plate, this might turn on/off its signal, or change the signal strength.
Methods
__construct()
php
public function __construct(\pocketmine\block\Block $block, \pocketmine\block\Block $newState, array $activatingEntities)getActivatingEntities()
php
public function getActivatingEntities() : arrayReturns a list of entities intersecting the pressure plate's activation box. If the pressure plate is about to deactivate, this list will be empty.
