MCPackDecrypt/progress.js

14 lines
316 B
JavaScript
Raw Permalink Normal View History

2023-07-23 12:15:53 +00:00
module.exports = class Progress {
_started = false;
constructor() {
}
getPercentage() {
if (!this._started) {
return 0;
}
return Math.round((this.zippedContent.length / this.contentFiles.length ) * 100);
}
isStarted(){
return this._started;
}
}