inventory
getStackInSlot(int slot): ItemStack
getStackInSlot(int slot): ItemStackGives the ItemStack that is in the requested slot, if the slot is empty this method returns null.
currentSlot(): int
currentSlot(): intReturns the selected hotbar slot as int, the current slot will always be in between 0 and 8.
setCurrentSlot(int slot): void
setCurrentSlot(int slot): voidSet the selected hotbar slot, please be aware that this does not send a packet to the server.
getPlacableBlockSlot(): int
getPlacableBlockSlot(): intGives a hotbar slot with a placable block stack, if there is no usable slot it will return -1.
Last updated