Skip to content

ItemDespawnEvent ​

class · pocketmine\event\entity\ItemDespawnEvent · source

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()

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.