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