Class AlpineEngine
java.lang.Object
co.crystaldev.alpinecore.framework.engine.AlpineEngine
- All Implemented Interfaces:
Activatable
,org.bukkit.event.Listener
A wrapper around
Listener
to allow for
automatic activation by the framework.
Inheritors should never be manually instantiated.
- Since:
- 0.1.0
- See Also:
-
Listener
- Using the Event API
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AlpinePlugin
The plugin that activated this engine -
Constructor Summary
ModifierConstructorDescriptionprotected
AlpineEngine
(AlpinePlugin plugin) Locked down to prevent improper instantiation. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
activate
(@NotNull AlpinePlugin context) Activate this object.final void
deactivate
(@NotNull AlpinePlugin context) Deactivate this object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.crystaldev.alpinecore.framework.Activatable
canDeactivate, isActive
-
Field Details
-
plugin
The plugin that activated this engine
-
-
Constructor Details
-
AlpineEngine
Locked down to prevent improper instantiation.Engines are reflectively instantiated by the framework automatically.
-
-
Method Details
-
activate
Description copied from interface:Activatable
Activate this object.- Specified by:
activate
in interfaceActivatable
- Parameters:
context
- The plugin which initiated the request
-
deactivate
Description copied from interface:Activatable
Deactivate this object.- Specified by:
deactivate
in interfaceActivatable
- Parameters:
context
- The plugin which initiated the request
-