/// <summary>
        /// Updates crafting matrix; called from onCraftMatrixChanged. Args: none
        /// </summary>
        public override void UpdateCraftingResults()
        {
            base.UpdateCraftingResults();

            for (int i = 0; i < Crafters.Count; i++)
            {
                ICrafting icrafting = (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;
        }
Esempio n. 2
0
        /// <summary>
        /// Updates crafting matrix; called from onCraftMatrixChanged. Args: none
        /// </summary>
        public override void UpdateCraftingResults()
        {
            base.UpdateCraftingResults();

            for (int i = 0; i < Crafters.Count; i++)
            {
                ICrafting icrafting = (ICrafting)Crafters[i];
                icrafting.UpdateCraftingInventoryInfo(this, 0, EnchantLevels[0]);
                icrafting.UpdateCraftingInventoryInfo(this, 1, EnchantLevels[1]);
                icrafting.UpdateCraftingInventoryInfo(this, 2, EnchantLevels[2]);
            }
        }
        /// <summary>
        /// Updates crafting matrix; called from onCraftMatrixChanged. Args: none
        /// </summary>
        public override void UpdateCraftingResults()
        {
            base.UpdateCraftingResults();

            for (int i = 0; i < Crafters.Count; i++)
            {
                ICrafting icrafting = (ICrafting)Crafters[i];

                if (BrewTime != TileBrewingStand.GetBrewTime())
                {
                    icrafting.UpdateCraftingInventoryInfo(this, 0, TileBrewingStand.GetBrewTime());
                }
            }

            BrewTime = TileBrewingStand.GetBrewTime();
        }