ItemDespawnEvent
Extends EntityEvent
Implements Cancellable
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).
Methods
__construct()
php
public function __construct(\pocketmine\entity\object\ItemEntity $item)getEntity()
php
public function getEntity()