Class TriggerGate
java.lang.Object
net.playavalon.mythicdungeons.api.parents.DungeonElement
net.playavalon.mythicdungeons.api.parents.DungeonTrigger
net.playavalon.mythicdungeons.dungeons.triggers.gates.TriggerGate
- All Implemented Interfaces:
Cloneable
,org.bukkit.configuration.serialization.ConfigurationSerializable
,org.bukkit.event.Listener
- Direct Known Subclasses:
TriggerGateAnd
,TriggerGateOr
-
Field Summary
Fields inherited from class net.playavalon.mythicdungeons.api.parents.DungeonTrigger
category
-
Constructor Summary
ConstructorDescriptionTriggerGate
(String id) TriggerGate
(String displayName, Map<String, Object> config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTrigger
(DungeonTrigger trigger) void
Used to build a hotbar menu for this trigger.clone()
void
init()
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.void
removeTrigger
(DungeonTrigger trigger) Methods inherited from class net.playavalon.mythicdungeons.api.parents.DungeonTrigger
addCondition, buildMenuButton, checkConditions, disable, enable, 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
-
TriggerGate
-
TriggerGate
-
-
Method Details
-
init
public void init()- Overrides:
init
in classDungeonTrigger
-
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
-
addTrigger
-
removeTrigger
-
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:
-
clone
- Overrides:
clone
in classDungeonTrigger
-