    001    package cpw.mods.fml.common.modloader;
    002
    003    import net.minecraft.src.ItemStack;
    004    import cpw.mods.fml.common.IFuelHandler;
    005
    006    public class ModLoaderFuelHelper implements IFuelHandler
    007    {
    008
    009        private BaseModProxy mod;
    010
    011        public ModLoaderFuelHelper(BaseModProxy mod)
    012        {
    013            this.mod = mod;
    014        }
    015
    016        @Override
    017        public int getBurnTime(ItemStack fuel)
    018        {
    019            return mod.addFuel(fuel.itemID, fuel.itemID);
    020        }
    021
    022    }