Class CompleteDungeonObjective
java.lang.Object
org.betonquest.betonquest.api.Objective
net.playavalon.mythicdungeons.compatibility.betonquest.objectives.CompleteDungeonObjective
- All Implemented Interfaces:
org.bukkit.event.Listener
public class CompleteDungeonObjective
extends org.betonquest.betonquest.api.Objective
implements org.bukkit.event.Listener
-
Nested Class Summary
Nested classes/interfaces inherited from class org.betonquest.betonquest.api.Objective
org.betonquest.betonquest.api.Objective.ObjectiveState
-
Constructor Summary
ConstructorDescriptionCompleteDungeonObjective
(org.betonquest.betonquest.Instruction instruction) Creates new instance of the objective. -
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String name, org.betonquest.betonquest.api.profiles.Profile profile) void
void
start()
void
stop()
Methods inherited from class org.betonquest.betonquest.api.Objective
cancelObjectiveForPlayer, checkConditions, close, completeObjective, completeObjectiveForPlayer, containsPlayer, createObjectiveForPlayer, getData, getDefaultDataInstruction, getLabel, isGlobal, newPlayer, pauseObjectiveForPlayer, resumeObjectiveForPlayer, setLabel, start, startObjective, stop, stopObjective
-
Constructor Details
-
CompleteDungeonObjective
public CompleteDungeonObjective(org.betonquest.betonquest.Instruction instruction) throws org.betonquest.betonquest.exceptions.InstructionParseException Creates new instance of the objective. The objective should parse instruction string at this point and extract all the data from it.
Do not register listeners here! There is astart()
method for it.- Parameters:
instruction
- Instruction object representing the objective; you need to extract all required information from it- Throws:
org.betonquest.betonquest.exceptions.InstructionParseException
- if the syntax is wrong or any error happens while parsing
-
-
Method Details
-
onDungeonFinish
-
start
public void start()- Specified by:
start
in classorg.betonquest.betonquest.api.Objective
-
stop
public void stop()- Specified by:
stop
in classorg.betonquest.betonquest.api.Objective
-
getDefaultDataInstruction
- Specified by:
getDefaultDataInstruction
in classorg.betonquest.betonquest.api.Objective
-
getProperty
- Specified by:
getProperty
in classorg.betonquest.betonquest.api.Objective
-