public static float playerRenderPartialTick;
@SubscribeEvent
public void onItemTooltip(ItemTooltipEvent event){
if(event.itemStack.getItem() instanceof IProgrammable) {
IProgrammable programmable = (IProgrammable)event.itemStack.getItem();
if(programmable.canProgram(event.itemStack) && programmable.showProgramTooltip()) {
Map<String, Integer> widgetMap = TileEntityProgrammer.getPuzzleSummary(TileEntityProgrammer.getProgWidgets(event.itemStack));
for(Map.Entry<String, Integer> entry : widgetMap.entrySet()) {
event.toolTip.add("-" + entry.getValue() + "x " + ItemProgrammingPuzzle.getStackForWidgetKey(entry.getKey()).getTooltip(event.entityPlayer, false).get(1));
}
}