setHeldItemSlot

public abstract void setHeldItemSlot(int slot)

Set the slot number of the currently held item.

This validates whether the slot is between 0 and 8 inclusive.

Parameters

slot

The new slot number

Throws

Thrown if slot is not between 0 and 8 inclusive