Class TriggerDistance
java.lang.Object
net.playavalon.mythicdungeons.api.parents.DungeonElement
net.playavalon.mythicdungeons.api.parents.DungeonTrigger
net.playavalon.mythicdungeons.dungeons.triggers.TriggerDistance
- All Implemented Interfaces:
Cloneable
,org.bukkit.configuration.serialization.ConfigurationSerializable
,org.bukkit.event.Listener
-
Field Summary
Fields inherited from class net.playavalon.mythicdungeons.api.parents.DungeonTrigger
category
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Used to build a hotbar menu for this trigger.Creates and returns a button for use with the trigger browser menu.void
initLegacyFields
(Map<String, Object> config) void
Override me if you have additional code to run when this trigger is DISABLED (I.e.void
onEnable()
Override me if you have additional code to run when this trigger is ENABLED (I.e.Methods inherited from class net.playavalon.mythicdungeons.api.parents.DungeonTrigger
addCondition, checkConditions, clone, disable, enable, init, initConditions, initConditionsMenu, onTrigger, removeCondition, setDisplayName, trigger, trigger, trigger, triggerParty, triggerPlayer
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
-
TriggerDistance
-
TriggerDistance
public TriggerDistance()
-
-
Method Details
-
initLegacyFields
-
buildMenuButton
Description copied from class:DungeonTrigger
Creates and returns a button for use with the trigger 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 classDungeonTrigger
- Returns:
- The menu button that will be displayed in the menu.
- See Also:
-
onEnable
public void onEnable()Description copied from class:DungeonTrigger
Override me if you have additional code to run when this trigger is ENABLED (I.e. Starting a timer to perform a check every X ticks instead of via Event Listener.)- Overrides:
onEnable
in classDungeonTrigger
-
onDisable
public void onDisable()Description copied from class:DungeonTrigger
Override me if you have additional code to run when this trigger is DISABLED (I.e. Canceling the timer mentioned in the `onEnable()` override.)- Overrides:
onDisable
in classDungeonTrigger
-
buildHotbarMenu
public void buildHotbarMenu()Description copied from class:DungeonTrigger
Used to build a hotbar menu for this trigger. Assign `menu` with a new HotbarMenu object and fill out the methods provided.- Specified by:
buildHotbarMenu
in classDungeonTrigger
- See Also:
-