Update ItemSpawnEvent doc (#5059)

This commit is contained in:
IvanCraft623 2022-05-21 16:09:21 -05:00 committed by GitHub
parent 7618b13c6e
commit 3abe80184a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,15 @@ namespace pocketmine\event\entity;
use pocketmine\entity\object\ItemEntity;
/**
* Called when an item is spawned or loaded.
*
* Some possible reasons include:
* - item is loaded from disk
* - player dropping an item
* - block drops
* - loot of a player or entity
*
* @see PlayerDropItemEvent
* @phpstan-extends EntityEvent<ItemEntity>
*/
class ItemSpawnEvent extends EntityEvent{