Improve documentation of EntitySpawnEvent and EntityDespawnEvent

This commit is contained in:
Dylan K. Taylor 2022-05-21 22:11:21 +01:00
parent 3abe80184a
commit 331b05c681
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 5 additions and 2 deletions

View File

@ -26,7 +26,9 @@ namespace pocketmine\event\entity;
use pocketmine\entity\Entity;
/**
* Called when a entity is despawned
* Called when an entity is removed from the world. This could be for a variety of reasons, including chunks being
* unloaded, entity death, etc.
*
* @phpstan-extends EntityEvent<Entity>
*/
class EntityDespawnEvent extends EntityEvent{

View File

@ -26,7 +26,8 @@ namespace pocketmine\event\entity;
use pocketmine\entity\Entity;
/**
* Called when a entity is spawned
* Called when an entity is added to the world. This might be a new entity or an entity loaded from storage.
*
* @phpstan-extends EntityEvent<Entity>
*/
class EntitySpawnEvent extends EntityEvent{