From 7618b13c6e9ef0059425364fccb9e9db7ee0f015 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 21 May 2022 21:57:14 +0100 Subject: [PATCH] ItemDespawnEvent: improve documentation --- src/event/entity/ItemDespawnEvent.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/event/entity/ItemDespawnEvent.php b/src/event/entity/ItemDespawnEvent.php index 6942fcf1b..ef496a23c 100644 --- a/src/event/entity/ItemDespawnEvent.php +++ b/src/event/entity/ItemDespawnEvent.php @@ -28,6 +28,9 @@ use pocketmine\event\Cancellable; use pocketmine\event\CancellableTrait; /** + * 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 */ class ItemDespawnEvent extends EntityEvent implements Cancellable{