endstone::PlayerItemHeldEvent
Called when a player changes their currently held item.
Bases: endstone::Cancellable< PlayerEvent >
Functions:
| Name | Description |
|---|---|
PlayerItemHeldEvent | |
getNewSlot | Gets the new held slot index. |
getPreviousSlot | Gets the previous held slot index. |
PlayerItemHeldEvent
PlayerItemHeldEvent(Player &player, const int previous, const int current) getNewSlot
int getNewSlot() constGets the new held slot index.
Returns:
New slot index
getPreviousSlot
int getPreviousSlot() constGets the previous held slot index.
Returns:
Previous slot index
Last updated on