PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
__construct (Block $block, Block $newState, private array $activatingEntities) | |
call () | |
getActivatingEntities () | |
getBlock () | |
getEventName () | |
getNewState () | |
isCancelled () | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
string | $eventName = null |
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.
Definition at line 33 of file PressurePlateUpdateEvent.php.
pocketmine\event\block\PressurePlateUpdateEvent::__construct | ( | Block | $block, |
Block | $newState, | ||
private array | $activatingEntities ) |
Entity[] | $activatingEntities |
Definition at line 37 of file PressurePlateUpdateEvent.php.
|
inherited |
pocketmine\event\block\PressurePlateUpdateEvent::getActivatingEntities | ( | ) |
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.
Definition at line 51 of file PressurePlateUpdateEvent.php.
|
inherited |
Definition at line 37 of file BlockEvent.php.
|
inherited |
Definition at line 43 of file BaseBlockChangeEvent.php.
|
staticinherited |
|
inherited |
Returns whether this instance of the event is currently cancelled.
If it is cancelled, only downstream handlers that declare @handleCancelled
will be called with this event.
|
protectedinherited |