Class FunctionDoorControl

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

public class FunctionDoorControl extends DungeonFunction
  • Constructor Details

    • FunctionDoorControl

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

      public FunctionDoorControl()
  • Method Details

    • 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 class DungeonFunction
    • initLegacyFields

      public void initLegacyFields(Map<String,Object> config)
    • setLocked

      public void setLocked(boolean locked)
    • openDoor

      public void openDoor()
    • closeDoor

      public void closeDoor()
    • onInteractDoor

      public void onInteractDoor(org.bukkit.event.player.PlayerInteractEvent event)
    • runFunction

      public void runFunction(TriggerFireEvent triggerEvent, List<MythicPlayer> targets)
      Specified by:
      runFunction in class DungeonFunction
    • buildMenuButton

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