Getter and setter methods for journal update

This commit is contained in:
PikaMug 2021-07-27 02:09:21 -04:00
parent f36a475077
commit e0e54cde48

View File

@ -21,15 +21,10 @@ import java.util.LinkedList;
public class QuestData {
private final Quester quester;
private boolean doJournalUpdate = true;
public QuestData(final Quester quester) {
this.quester = quester;
}
public void setDoJournalUpdate(final boolean b) {
doJournalUpdate = b;
}
public LinkedList<ItemStack> blocksBroken = new LinkedList<ItemStack>() {
@ -1193,6 +1188,7 @@ public class QuestData {
private long delayStartTime = 0;
private long delayTimeLeft = -1;
private boolean doJournalUpdate = true;
public LinkedList<ItemStack> getBlocksBroken() {
return blocksBroken;
@ -1476,4 +1472,12 @@ public class QuestData {
quester.updateJournal();
}
}
public boolean canDoJournalUpdate() {
return doJournalUpdate;
}
public void setDoJournalUpdate(final boolean b) {
doJournalUpdate = b;
}
}