float handMovementAnimationOffset = character.handAnimation;
int invSlotIndex = character.selectedItem;
EntityRef heldItem = InventoryUtils.getItemAt(localPlayer.getCharacterEntity(), invSlotIndex);
ItemComponent heldItemComp = heldItem.getComponent(ItemComponent.class);
BlockItemComponent blockItem = heldItem.getComponent(BlockItemComponent.class);
if (blockItem != null && blockItem.blockFamily != null) {
renderBlock(blockItem.blockFamily, bobOffset, handMovementAnimationOffset);
} else if (heldItemComp != null && heldItemComp.renderWithIcon) {
renderIcon(heldItemComp.icon, bobOffset, handMovementAnimationOffset);
} else {