edited to show both the hotbar and player-held item correctly.
                                                                getIconIndex governs the hotbar texture, getIcon is for in-hand.