mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-26 04:36:06 +01:00
Getter and setter methods for journal update
This commit is contained in:
parent
f36a475077
commit
e0e54cde48
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user