Class FunctionMulti
java.lang.Object
net.playavalon.mythicdungeons.api.parents.DungeonElement
net.playavalon.mythicdungeons.api.parents.DungeonFunction
net.playavalon.mythicdungeons.dungeons.functions.meta.FunctionMulti
- All Implemented Interfaces:
Cloneable
,org.bukkit.configuration.serialization.ConfigurationSerializable
,org.bukkit.event.Listener
- Direct Known Subclasses:
FunctionDelayed
,FunctionRandom
,FunctionRepeater
,FunctionSequence
-
Field Summary
Fields inherited from class net.playavalon.mythicdungeons.api.parents.DungeonFunction
category, requiresTarget
-
Constructor Summary
ConstructorDescriptionFunctionMulti
(String namespace) FunctionMulti
(String namespace, Map<String, Object> config) FunctionMulti
(Map<String, Object> config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFunction
(DungeonFunction function) void
Used to build a hotbar menu for this function.Creates and returns a button for use with the function browser menu.clone()
void
init()
void
Override me if you have additional code to run when this function is DISABLED.void
onEnable()
Override me if you have additional code to run when this function is ENABLED.void
removeFunction
(DungeonFunction function) void
runFunction
(TriggerFireEvent triggerEvent, List<MythicPlayer> targets) void
setInstance
(Instance instance) void
setLocation
(org.bukkit.Location loc) Methods inherited from class net.playavalon.mythicdungeons.api.parents.DungeonFunction
disable, enable, execute, executeForParty, executeForPlayer, onExecute, setCategory, setDisplayName, setTrigger
Methods inherited from class net.playavalon.mythicdungeons.api.parents.DungeonElement
initFields, serialize
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Constructor Details
-
FunctionMulti
-
FunctionMulti
-
FunctionMulti
-
FunctionMulti
public FunctionMulti()
-
-
Method Details
-
init
public void init()- Overrides:
init
in classDungeonFunction
-
onEnable
public void onEnable()Description copied from class:DungeonFunction
Override me if you have additional code to run when this function is ENABLED.- Overrides:
onEnable
in classDungeonFunction
-
onDisable
public void onDisable()Description copied from class:DungeonFunction
Override me if you have additional code to run when this function is DISABLED.- Overrides:
onDisable
in classDungeonFunction
-
addFunction
-
removeFunction
-
runFunction
- Specified by:
runFunction
in classDungeonFunction
-
buildMenuButton
Description copied from class:DungeonFunction
Creates and returns a button for use with the function browser menu. MenuButton can be initialized with a Spigot Material, and provided with a display name, lore, enchant effect, and amount.- Specified by:
buildMenuButton
in classDungeonFunction
- Returns:
- The menu button that will be displayed in the menu.
- See Also:
-
buildHotbarMenu
public void buildHotbarMenu()Description copied from class:DungeonFunction
Used to build a hotbar menu for this function. Use `menu.addMenuItem()` to add buttons to the hotbar menu, creating a `new MenuItem()` and filling in the provided methods.- Specified by:
buildHotbarMenu
in classDungeonFunction
- See Also:
-
setLocation
public void setLocation(org.bukkit.Location loc) - Overrides:
setLocation
in classDungeonFunction
-
setInstance
- Overrides:
setInstance
in classDungeonFunction
-
clone
- Overrides:
clone
in classDungeonFunction
-