public class QuestRequirementCheckerItems extends QuestRequirementChecker
itemRemover, itemStackLores, objectiveLores, phase, player, quest, trackerLocationString, trackerName
Constructor and Description |
---|
QuestRequirementCheckerItems(org.bukkit.entity.Player player,
WauzQuest quest,
int phase)
Initializes a new quest requirement checker for items.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkRequirements()
Checks if the requirements have been fulfilled.
|
protected boolean |
execute(boolean onlyObjectives)
Checks the requirements of the quest and creates corresponding tracker locations and lore.
|
void |
handInItems()
Hands in quest related items, if any were needed.
|
void |
initRequirements()
Initializes configuration values for the requirements, if any are needed.
|
create, getItemStackLores, getItemStackLoresUnaccepted, getObjectiveLores, trackQuestObjective
public QuestRequirementCheckerItems(org.bukkit.entity.Player player, WauzQuest quest, int phase)
player
- The player that is doing the quest.quest
- The quest to check requirements for.phase
- The quest phase to check requirements for.public void initRequirements()
initRequirements
in class QuestRequirementChecker
public boolean checkRequirements()
checkRequirements
in class QuestRequirementChecker
public void handInItems()
handInItems
in class QuestRequirementChecker
protected boolean execute(boolean onlyObjectives)
execute
in class QuestRequirementChecker
onlyObjectives
- If only objectives and no progress should appear in the lore.