So, maybe I'm just trying to cut corners here, but none of these IF-statements seem to be returning true, despite the inventory definitely having empty slots.
if(player.inventory.hasItemStack(ItemStack.EMPTY)) {
//Do something
}
if(player.inventory.hasItemStack(new ItemStack(Items.AIR))) {
//Do something
}
if(player.inventory.hasItemStack(new ItemStack(Blocks.AIR))) {
//Do something
}
Am I really going to have to add the code to iterate over all slots in the inventory? or is t