Class CollectItemsObjective
java.lang.Object
rocks.gravili.notquests.spigot.structs.objectives.Objective
rocks.gravili.notquests.spigot.structs.objectives.CollectItemsObjective
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal long
final org.bukkit.inventory.ItemStack
getObjectiveTaskDescription
(String eventualColor, org.bukkit.entity.Player player) static void
handleCommands
(NotQuests main, cloud.commandframework.paper.PaperCommandManager<org.bukkit.command.CommandSender> manager, cloud.commandframework.Command.Builder<org.bukkit.command.CommandSender> addObjectiveBuilder) final boolean
final boolean
void
void
onObjectiveUnlock
(ActiveObjective activeObjective) void
void
setCollectAnyItem
(boolean collectAnyItem) void
setDeductIfItemIsDropped
(boolean deductIfItemIsDropped) void
setItemToCollect
(org.bukkit.inventory.ItemStack itemToCollect) Methods inherited from class rocks.gravili.notquests.spigot.structs.objectives.Objective
addCondition, addReward, clearConditions, clearRewards, getCompletionArmorStandUUID, getCompletionNPCID, getConditions, getObjectiveDescription, getObjectiveDescription, getObjectiveDisplayName, getObjectiveFinalName, getObjectiveID, getProgressNeeded, getQuest, getRewards, removeCondition, removeObjectiveDescription, removeObjectiveDisplayName, removeReward, setCompletionArmorStandUUID, setCompletionNPCID, setObjectiveDescription, setObjectiveDisplayName, setObjectiveID, setProgressNeeded, setQuest
-
Constructor Details
-
CollectItemsObjective
-
-
Method Details
-
handleCommands
public static void handleCommands(NotQuests main, cloud.commandframework.paper.PaperCommandManager<org.bukkit.command.CommandSender> manager, cloud.commandframework.Command.Builder<org.bukkit.command.CommandSender> addObjectiveBuilder) -
isCollectAnyItem
public final boolean isCollectAnyItem() -
setCollectAnyItem
public void setCollectAnyItem(boolean collectAnyItem) -
setItemToCollect
public void setItemToCollect(org.bukkit.inventory.ItemStack itemToCollect) -
getObjectiveTaskDescription
- Specified by:
getObjectiveTaskDescription
in classObjective
-
setDeductIfItemIsDropped
public void setDeductIfItemIsDropped(boolean deductIfItemIsDropped) -
save
-
load
-
getItemToCollect
public final org.bukkit.inventory.ItemStack getItemToCollect() -
getAmountToCollect
public final long getAmountToCollect() -
onObjectiveUnlock
- Specified by:
onObjectiveUnlock
in classObjective
-
isDeductIfItemIsDropped
public final boolean isDeductIfItemIsDropped()
-