lockSlot

fun lockSlot(slot: Int, item: ItemStack?)

Locks an inventory slot for the player by sending a fake item packet.

Parameters

slot

The slot index to lock.

item

The item to display in the locked slot, or null to show empty.