Class DungeonElement

java.lang.Object
net.playavalon.mythicdungeons.api.parents.DungeonElement
All Implemented Interfaces:
org.bukkit.configuration.serialization.ConfigurationSerializable
Direct Known Subclasses:
DungeonFunction, DungeonTrigger, TriggerCondition

public abstract class DungeonElement extends Object implements org.bukkit.configuration.serialization.ConfigurationSerializable
  • Constructor Details

    • DungeonElement

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

      public DungeonElement()
  • Method Details

    • init

      public abstract void init()
    • initFields

      public final void initFields()
    • disable

      public void disable()
    • buildMenuButton

      public abstract MenuButton buildMenuButton()
      Creates and returns a button for use with the browser menu. MenuButton can be initialized with a Spigot Material, and provided with a display name, lore, enchant effect, and amount.
      Returns:
      The menu button that will be displayed in the menu.
      See Also:
    • buildHotbarMenu

      public abstract void buildHotbarMenu()
      Used to build a hotbar menu for this element. Assign `menu` with a new HotbarMenu object and fill out the methods provided.
      See Also:
    • serialize

      @NotNull public Map<String,Object> serialize()
      Specified by:
      serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializable
    • clone

      Throws:
      CloneNotSupportedException