mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-14 14:45:41 +01:00
Getter and setter methods for journal update
This commit is contained in:
parent
f36a475077
commit
e0e54cde48
@ -21,16 +21,11 @@ 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>() {
|
||||
|
||||
private static final long serialVersionUID = -6071822509475270168L;
|
||||
@ -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