PocketMine-MP 5.21.3 git-fcef015f32c0b0709cfd4d6f1b3c32f484b25bde
|
Public Member Functions | |
__construct (Entity $combustee, int $duration) | |
call () | |
getDuration () | |
getEntity () | |
getEventName () | |
isCancelled () | |
setDuration (int $duration) | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
int | $duration |
Entity | $entity |
string | $eventName = null |
@phpstan-extends EntityEvent<Entity>
Definition at line 33 of file EntityCombustEvent.php.
pocketmine\event\entity\EntityCombustEvent::__construct | ( | Entity | $combustee, |
int | $duration ) |
Definition at line 38 of file EntityCombustEvent.php.
|
inherited |
pocketmine\event\entity\EntityCombustEvent::getDuration | ( | ) |
Returns the duration in seconds the entity will burn for.
Definition at line 46 of file EntityCombustEvent.php.
|
inherited |
Reimplemented in pocketmine\event\entity\EntityDeathEvent, pocketmine\event\entity\EntityShootBowEvent, pocketmine\event\entity\ItemDespawnEvent, pocketmine\event\entity\ItemSpawnEvent, pocketmine\event\entity\ProjectileHitEvent, pocketmine\event\entity\ProjectileLaunchEvent, and pocketmine\event\player\PlayerDeathEvent.
Definition at line 43 of file EntityEvent.php.
References pocketmine\event\entity\EntityEvent\$entity.
|
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.
pocketmine\event\entity\EntityCombustEvent::setDuration | ( | int | $duration | ) |
Definition at line 50 of file EntityCombustEvent.php.
|
protected |
Definition at line 36 of file EntityCombustEvent.php.
|
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().
|
protectedinherited |