public class QuestMenuItems
extends java.lang.Object
Constructor and Description |
---|
QuestMenuItems() |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.inventory.ItemStack |
generateCompletedQuest(org.bukkit.entity.Player player,
WauzQuest quest)
Creates an item stack, containing information about a finished quest.
|
static org.bukkit.inventory.ItemStack |
generateEmptyQuest(java.lang.String type)
Creates an item stack, that represents a free quest slot, that isn't bound to any quest.
|
static org.bukkit.inventory.ItemStack |
generateQuest(org.bukkit.entity.Player player,
java.lang.String questName,
int phase,
org.bukkit.Material colorMaterial)
Creates an item stack, containing information about a running quest.
|
static org.bukkit.inventory.ItemStack |
generateUnacceptedQuest(org.bukkit.entity.Player player,
WauzQuest quest,
int phase,
boolean trackable)
Creates an item stack, containing information about an unstarted quest.
|
private static java.util.List<java.lang.String> |
getInformationSection(WauzQuest quest)
Creates a information section, to display in quest item lores.
|
private static java.util.List<java.lang.String> |
getRewardSection(org.bukkit.entity.Player player,
WauzQuest quest)
Creates a reward section, including bonus multipliers, to display in quest item lores.
|
public static org.bukkit.inventory.ItemStack generateQuest(org.bukkit.entity.Player player, java.lang.String questName, int phase, org.bukkit.Material colorMaterial)
player
- The player that is doing the quest.questName
- The name of the quest.phase
- The current quest phase.colorMaterial
- The material of the item stack.WauzQuest.getDisplayName()
,
QuestRequirementChecker.getItemStackLores()
public static org.bukkit.inventory.ItemStack generateEmptyQuest(java.lang.String type)
type
- The type of the quest, for showing in the display name.public static org.bukkit.inventory.ItemStack generateUnacceptedQuest(org.bukkit.entity.Player player, WauzQuest quest, int phase, boolean trackable)
player
- The player that is viewing the quest.quest
- The unaccepted quest.phase
- The displayed quest phase.trackable
- If the quest can be tracked.WauzQuest.getDisplayName()
,
QuestRequirementChecker.getItemStackLoresUnaccepted()
public static org.bukkit.inventory.ItemStack generateCompletedQuest(org.bukkit.entity.Player player, WauzQuest quest)
player
- The player that is viewing the quest.quest
- The unaccepted quest.private static java.util.List<java.lang.String> getInformationSection(WauzQuest quest)
quest
- The quest to show.private static java.util.List<java.lang.String> getRewardSection(org.bukkit.entity.Player player, WauzQuest quest)
player
- The player that is viewing the quest.quest
- The quest to show.