public class MythicMechanicLoadEvent
extends org.bukkit.event.Event
CustomMechanic
Constructor and Description |
---|
MythicMechanicLoadEvent(CustomMechanic holder,
String name,
MythicLineConfig mlc) |
Modifier and Type | Method and Description |
---|---|
MythicLineConfig |
getConfig()
Gets the line configuration for the mechanic
|
CustomMechanic |
getContainer()
Gets the container of the Custom Mechanics that "holds"
the mechanic in MythicMobs and manages various traits
such as the cooldown, conditions, and triggers.
|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
CustomMechanic |
getHolder()
Deprecated.
|
Optional<SkillMechanic> |
getMechanic() |
String |
getMechanicName()
Gets the name of the custom mechanic being looked for
|
void |
register(SkillMechanic mechanic)
Registers a custom mechanic in MythicMobs, tied to the
mechanic name in the event.
|
public MythicMechanicLoadEvent(CustomMechanic holder, String name, MythicLineConfig mlc)
public CustomMechanic getContainer()
@Deprecated public CustomMechanic getHolder()
public String getMechanicName()
public MythicLineConfig getConfig()
MythicLineConfig
public void register(SkillMechanic mechanic)
mechanic
- SkillMechanic
public Optional<SkillMechanic> getMechanic()
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public static org.bukkit.event.HandlerList getHandlerList()
Copyright © 2020. All rights reserved.