Class QuestProgress

java.lang.Object
com.pixelmonmod.pixelmon.quests.QuestProgress
All Implemented Interfaces:
ISaveData

public class QuestProgress extends Object implements ISaveData
  • Constructor Details

    • QuestProgress

      public QuestProgress(Quest quest, QuestData parent)
    • QuestProgress

      public QuestProgress(net.minecraft.nbt.CompoundTag nbt, QuestData data)
  • Method Details

    • start

      public void start()
    • fail

      public void fail(net.minecraft.server.level.ServerPlayer player)
    • complete

      public void complete(net.minecraft.server.level.ServerPlayer player)
    • isStarted

      public boolean isStarted()
    • isComplete

      public boolean isComplete()
    • isFailed

      public boolean isFailed()
    • initQuantities

      public void initQuantities()
    • reopen

      public void reopen()
    • getDataLong

      public Long getDataLong(String key)
    • getDataString

      public String getDataString(String key)
    • getData

      public String getData(String key)
    • getDataLongMap

      public HashMap<String,Long> getDataLongMap()
    • getDataStringMap

      public HashMap<String,String> getDataStringMap()
    • getDataUUIDs

      public ArrayList<UUID> getDataUUIDs()
    • setData

      public void setData(String key, long value)
    • setData

      public void setData(String key, String value)
    • sendTo

      public void sendTo(net.minecraft.server.level.ServerPlayer player)
    • getStage

      public short getStage()
    • getCurrentStage

      public Stage getCurrentStage()
    • getNextStage

      public Stage getNextStage()
    • setStage

      public boolean setStage(short stage)
    • moveStage

      public boolean moveStage(QuestData quest, Stage oldStage, short newStageID) throws InvalidQuestArgsException
      Throws:
      InvalidQuestArgsException
    • completeObjective

      public void completeObjective(int index)
      Ticks the completed count
      Parameters:
      index -
    • resetObjective

      public void resetObjective(int index)
    • isObjectiveComplete

      public boolean isObjectiveComplete(int index)
    • getObjectiveQuantityComplete

      public int getObjectiveQuantityComplete(int index)
    • getObjectiveTotalQuantity

      public int getObjectiveTotalQuantity(int index)
    • canProgress

      public boolean canProgress()
    • getMarkerType

      public QuestMarker.Type getMarkerType()
    • getMarkers

      public ArrayList<QuestMarker> getMarkers()
    • getQuestFilename

      public String getQuestFilename()
    • getQuest

      public Quest getQuest()
    • invalidate

      public void invalidate()
    • getIdentifier

      public UUID getIdentifier()
    • isAbandonable

      public boolean isAbandonable()
    • setAbandonable

      public void setAbandonable(boolean abandonable)
    • writeToNBT

      public void writeToNBT(net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      writeToNBT in interface ISaveData
    • readFromNBT

      public void readFromNBT(net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      readFromNBT in interface ISaveData
    • getParent

      public QuestData getParent()