Class TriggerRedstone
java.lang.Object
net.playavalon.mythicdungeons.api.parents.DungeonElement
net.playavalon.mythicdungeons.api.parents.DungeonTrigger
net.playavalon.mythicdungeons.dungeons.triggers.TriggerRedstone
- 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
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
onRedstoneSignal
(org.bukkit.event.block.BlockRedstoneEvent event) 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
-
TriggerRedstone
-
TriggerRedstone
public TriggerRedstone()
-
-
Method Details
-
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
-
onRedstoneSignal
public void onRedstoneSignal(org.bukkit.event.block.BlockRedstoneEvent event) -
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:
-