Skip to content

PressurePlateUpdateEvent ​

final class · pocketmine\event\block\PressurePlateUpdateEvent · source

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() : array

Returns a list of entities intersecting the pressure plate's activation box. If the pressure plate is about to deactivate, this list will be empty.

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