PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
__construct (ItemEntity $item) | |
call () | |
getEntity () | |
getEventName () | |
isCancelled () | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
Entity | $entity |
string | $eventName = null |
Called when a dropped item tries to despawn due to its despawn delay running out. Cancelling the event will reset the despawn delay to default (5 minutes).
@phpstan-extends EntityEvent<ItemEntity>
Definition at line 36 of file ItemDespawnEvent.php.
pocketmine\event\entity\ItemDespawnEvent::__construct | ( | ItemEntity | $item | ) |
Definition at line 39 of file ItemDespawnEvent.php.
|
inherited |
pocketmine\event\entity\ItemDespawnEvent::getEntity | ( | ) |
Reimplemented from pocketmine\event\entity\EntityEvent.
Definition at line 46 of file ItemDespawnEvent.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.
|
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 |