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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
Used to build a hotbar menu for this element.abstract MenuButton
Creates and returns a button for use with the browser menu.clone()
void
disable()
abstract void
init()
final void
-
Constructor Details
-
DungeonElement
-
DungeonElement
public DungeonElement()
-
-
Method Details
-
init
public abstract void init() -
initFields
public final void initFields() -
disable
public void disable() -
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. -
serialize
- Specified by:
serialize
in interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable
-
clone
- Throws:
CloneNotSupportedException
-