◆ __construct()
pocketmine\event\entity\EntityCombustByBlockEvent::__construct |
( |
Block | $combuster, |
|
|
Entity | $combustee, |
|
|
int | $duration ) |
◆ call()
pocketmine\event\Event::call |
( |
| ) |
|
|
inherited |
Calls event handlers registered for this event.
- Exceptions
-
RuntimeException if event call recursion reaches the max depth limit
Definition at line 49 of file Event.php.
◆ getCombuster()
pocketmine\event\entity\EntityCombustByBlockEvent::getCombuster |
( |
| ) |
|
◆ getDuration()
pocketmine\event\entity\EntityCombustEvent::getDuration |
( |
| ) |
|
|
inherited |
◆ getEntity()
pocketmine\event\entity\EntityEvent::getEntity |
( |
| ) |
|
|
inherited |
◆ getEventName()
pocketmine\event\Event::getEventName |
( |
| ) |
|
|
finalinherited |
◆ hasHandlers()
static pocketmine\event\Event::hasHandlers |
( |
| ) |
|
|
staticinherited |
Returns whether the current class context has any registered global handlers. This can be used in hot code paths to avoid unnecessary event object creation.
Usage: SomeEventClass::hasHandlers()
Definition at line 77 of file Event.php.
◆ isCancelled()
pocketmine\event\Cancellable::isCancelled |
( |
| ) |
|
|
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.
◆ setDuration()
pocketmine\event\entity\EntityCombustEvent::setDuration |
( |
int | $duration | ) |
|
|
inherited |
◆ $combuster
Block pocketmine\event\entity\EntityCombustByBlockEvent::$combuster |
|
protected |
◆ $duration
int pocketmine\event\entity\EntityCombustEvent::$duration |
|
protectedinherited |
◆ $entity
Entity pocketmine\event\entity\EntityEvent::$entity |
|
protectedinherited |
@phpstan-var TEntity
Definition at line 37 of file EntityEvent.php.
Referenced by pocketmine\event\entity\EntityDamageByBlockEvent\__construct(), pocketmine\event\entity\EntityDamageByChildEntityEvent\__construct(), pocketmine\event\entity\EntityDamageByEntityEvent\__construct(), pocketmine\event\entity\EntityDamageEvent\__construct(), pocketmine\event\entity\EntityDeathEvent\__construct(), pocketmine\event\entity\EntityExplodeEvent\__construct(), pocketmine\event\player\PlayerDeathEvent\__construct(), pocketmine\event\entity\EntityDeathEvent\getEntity(), pocketmine\event\entity\EntityEvent\getEntity(), pocketmine\event\entity\EntityShootBowEvent\getEntity(), pocketmine\event\entity\ItemDespawnEvent\getEntity(), pocketmine\event\entity\ItemSpawnEvent\getEntity(), pocketmine\event\entity\ProjectileHitEvent\getEntity(), and pocketmine\event\entity\ProjectileLaunchEvent\getEntity().
◆ $eventName
string pocketmine\event\Event::$eventName = null |
|
protectedinherited |
The documentation for this class was generated from the following file: