Class TriggerRedstone

All Implemented Interfaces:
Cloneable, org.bukkit.configuration.serialization.ConfigurationSerializable, org.bukkit.event.Listener

public class TriggerRedstone extends DungeonTrigger
  • Constructor Details

    • TriggerRedstone

      public TriggerRedstone(Map<String,Object> config)
    • TriggerRedstone

      public TriggerRedstone()
  • Method Details

    • buildMenuButton

      public MenuButton 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 class DungeonTrigger
      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 class DungeonTrigger
    • 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 class DungeonTrigger
    • 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 class DungeonTrigger
      See Also: