@Override public void clicked(InputEvent event, float x, float y) { inventory.deselectPreviousSlot(); inventory.m_hotbarInventory.selectSlot(index); }