forceHeldSlot

fun forceHeldSlot(slot: Int)

Forces the player's held item slot to the specified index via a packet.

Parameters

slot

The hotbar slot index (0–8) to force.