PlayerItemHeldEvent: add documentation

since some nuances of the intended behaviour were previously unclear...
This commit is contained in:
Dylan K. Taylor 2022-05-21 21:21:13 +01:00
parent 3ca80b353b
commit 8ecf9717d6
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -28,6 +28,11 @@ use pocketmine\event\CancellableTrait;
use pocketmine\item\Item;
use pocketmine\player\Player;
/**
* Called when a player's held item changes.
* This could be because they selected a different hotbar slot, or because the item in the selected hotbar slot was
* changed.
*/
class PlayerItemHeldEvent extends PlayerEvent implements Cancellable{
use CancellableTrait;