public void addTaskData(Quest quest) { try { if (HardcoreQuesting.getPlayer() != null) { addTaskData.invoke(quest, quest.getQuestData(HardcoreQuesting.getPlayer())); } else { addTaskData.invoke(quest, quest.getQuestData("lorddusk")); } } catch (Exception e) { e.printStackTrace(); } }
/** Will increment the objectiveCounter if it is less then what is required by the quest. */ public void incrementObjectiveCounter() { if (objectiveCounter < quest.getQuestData().getObjectiveCounter()) objectiveCounter++; }