Пример #1
0
        private short GetFuelEfficiency()
        {
            if (FuelSlot.IsVoid())
            {
                return(0);
            }

            return(FuelSlot.Type < 256 ? BlockHelper.Instance.BurnEfficiency((byte)FuelSlot.Type) : BlockData.ItemBurnEfficiency[(BlockData.Items)FuelSlot.Type]);
        }
Пример #2
0
 private bool HasFuel()
 {
     if (FuelSlot.IsVoid())
     {
         return(false);
     }
     return((FuelSlot.Type < 256 && BlockHelper.Instance.IsIgnitable((byte)FuelSlot.Type)) ||
            (FuelSlot.Type >= 256 && BlockData.ItemBurnEfficiency.ContainsKey((BlockData.Items)FuelSlot.Type)));
 }