BETA: Quest and QuestState Javadocs and minor code improvements by jurchiks, thanks:…
BETA: Quest and QuestState Javadocs and minor code improvements by jurchiks, thanks:
* Avoiding using Javolution for not shared lists/maps.
* Note that I (Zoey76) removed FastList from timers since we use ReentrantLock for them.
* New methods:
* exitQuest(boolean, boolean)
* Finishes the quest and removes all quest items associated with this quest from the player's inventory. If {@code repeatable} is set to {@code false}, also removes all other quest data associated with this quest.
* startQuest()
* Set condition to 1, state to STARTED and play the "ItemSound.quest_accept". Works only if state is CREATED and the quest is not a custom quest.
* isCond(int)
* Checks if the quest state progress cond is at the specified step.
* setCond(int)
* Sets the quest state progress code cond to the specified step.
Reviewed by UnAfraid and me.