public override void OnCraftGuiOpened(net.minecraft.src.ICrafting icrafting) { base.OnCraftGuiOpened(icrafting); icrafting.UpdateCraftingInventoryInfo(this, 0, furnace.furnaceCookTime); icrafting.UpdateCraftingInventoryInfo(this, 1, furnace.furnaceBurnTime); icrafting.UpdateCraftingInventoryInfo(this, 2, furnace.currentItemBurnTime); }
public override void UpdateCraftingMatrix() { base.UpdateCraftingMatrix(); for (int i = 0; i < crafters.Count; i++) { net.minecraft.src.ICrafting icrafting = (net.minecraft.src.ICrafting)crafters[i]; if (lastCookTime != furnace.furnaceCookTime) { icrafting.UpdateCraftingInventoryInfo(this, 0, furnace.furnaceCookTime); } if (lastBurnTime != furnace.furnaceBurnTime) { icrafting.UpdateCraftingInventoryInfo(this, 1, furnace.furnaceBurnTime); } if (lastItemBurnTime != furnace.currentItemBurnTime) { icrafting.UpdateCraftingInventoryInfo(this, 2, furnace.currentItemBurnTime); } } lastCookTime = furnace.furnaceCookTime; lastBurnTime = furnace.furnaceBurnTime; lastItemBurnTime = furnace.currentItemBurnTime; }