Constructor and Description |
---|
QuestProgress(net.minecraft.nbt.CompoundNBT nbt,
QuestData data) |
QuestProgress(Quest quest,
QuestData parent) |
Modifier and Type | Method and Description |
---|---|
boolean |
canProgress() |
void |
complete(net.minecraft.entity.player.ServerPlayerEntity player) |
void |
completeObjective(int index)
Ticks the completed count
|
void |
fail(net.minecraft.entity.player.ServerPlayerEntity player) |
Stage |
getCurrentStage() |
java.lang.String |
getData(java.lang.String key) |
java.lang.Long |
getDataLong(java.lang.String key) |
java.util.HashMap<java.lang.String,java.lang.Long> |
getDataLongMap() |
java.lang.String |
getDataString(java.lang.String key) |
java.util.HashMap<java.lang.String,java.lang.String> |
getDataStringMap() |
java.util.ArrayList<java.util.UUID> |
getDataUUIDs() |
java.util.UUID |
getIdentifier() |
java.util.ArrayList<QuestMarker> |
getMarkers() |
QuestMarker.Type |
getMarkerType() |
Stage |
getNextStage() |
int |
getObjectiveQuantityComplete(int index) |
int |
getObjectiveTotalQuantity(int index) |
QuestData |
getParent() |
Quest |
getQuest() |
java.lang.String |
getQuestFilename() |
short |
getStage() |
void |
initQuantities() |
void |
invalidate() |
boolean |
isAbandonable() |
boolean |
isComplete() |
boolean |
isFailed() |
boolean |
isObjectiveComplete(int index) |
boolean |
isStarted() |
boolean |
moveStage(QuestData quest,
Stage oldStage,
short newStageID) |
void |
readFromNBT(net.minecraft.nbt.CompoundNBT nbt) |
void |
reopen() |
void |
resetObjective(int index) |
void |
sendTo(net.minecraft.entity.player.ServerPlayerEntity player) |
void |
setAbandonable(boolean abandonable) |
void |
setData(java.lang.String key,
long value) |
void |
setData(java.lang.String key,
java.lang.String value) |
boolean |
setStage(short stage) |
void |
start() |
void |
writeToNBT(net.minecraft.nbt.CompoundNBT nbt) |
public QuestProgress(net.minecraft.nbt.CompoundNBT nbt, QuestData data)
public void start()
public void fail(net.minecraft.entity.player.ServerPlayerEntity player)
public void complete(net.minecraft.entity.player.ServerPlayerEntity player)
public boolean isStarted()
public boolean isComplete()
public boolean isFailed()
public void initQuantities()
public void reopen()
public java.lang.Long getDataLong(java.lang.String key)
public java.lang.String getDataString(java.lang.String key)
public java.lang.String getData(java.lang.String key)
public java.util.HashMap<java.lang.String,java.lang.Long> getDataLongMap()
public java.util.HashMap<java.lang.String,java.lang.String> getDataStringMap()
public java.util.ArrayList<java.util.UUID> getDataUUIDs()
public void setData(java.lang.String key, long value)
public void setData(java.lang.String key, java.lang.String value)
public void sendTo(net.minecraft.entity.player.ServerPlayerEntity player)
public short getStage()
public Stage getCurrentStage()
public Stage getNextStage()
public boolean setStage(short stage)
public boolean moveStage(QuestData quest, Stage oldStage, short newStageID) throws InvalidQuestArgsException
InvalidQuestArgsException
public void completeObjective(int index)
index
- public void resetObjective(int index)
public boolean isObjectiveComplete(int index)
public int getObjectiveQuantityComplete(int index)
public int getObjectiveTotalQuantity(int index)
public boolean canProgress()
public QuestMarker.Type getMarkerType()
public java.util.ArrayList<QuestMarker> getMarkers()
public java.lang.String getQuestFilename()
public Quest getQuest()
public void invalidate()
public java.util.UUID getIdentifier()
public boolean isAbandonable()
public void setAbandonable(boolean abandonable)
public void writeToNBT(net.minecraft.nbt.CompoundNBT nbt)
writeToNBT
in interface ISaveData
public void readFromNBT(net.minecraft.nbt.CompoundNBT nbt)
readFromNBT
in interface ISaveData
public QuestData getParent()