EntityDismountEvent 5.46.0
Extends EntityEvent
Implements Cancellable
Called when an entity is about to stop riding its vehicle. Dismounts that can't be refused (the rider or the vehicle died, despawned, teleported or changed world) are not cancellable: cancelling them has no effect.
Methods
__construct()
php
public function __construct(\pocketmine\entity\Entity $entity, \pocketmine\entity\Entity $vehicle, bool $forced)getVehicle()
php
public function getVehicle() : \pocketmine\entity\EntityisForced()
php
public function isForced() : boolReturns whether the dismount happens anyway, whatever the event result.
