public void handleBlockItemSwitch(Packet16BlockItemSwitch packet16blockitemswitch) { if (packet16blockitemswitch.id < 0 || packet16blockitemswitch.id > InventoryPlayer.func_25054_e()) { logger.warning( (new StringBuilder()) .append(playerEntity.username) .append(" tried to set an invalid carried item") .toString()); return; } else { playerEntity.inventory.currentItem = packet16blockitemswitch.id; return; } }