Represents a packet sent from the server when the held item hotbar slot changes
Packet
getHeldItemHotbarIndex(): number
number
Gets the new selected hotbar slot index
Returns
The hotbar slot index (0-8)
getPacketID(): string
string
Get the ID of the packet.
The ID of the packet.
Inherited from
Packet.getPacketID
getPacketID
Last updated 3 months ago