Class AlpineEngine

java.lang.Object
co.crystaldev.alpinecore.framework.engine.AlpineEngine
All Implemented Interfaces:
Activatable, org.bukkit.event.Listener

public abstract class AlpineEngine extends Object implements org.bukkit.event.Listener, Activatable
A wrapper around Listener to allow for automatic activation by the framework.

Inheritors should never be manually instantiated.

Since:
0.1.0
See Also:
  • Field Details

    • plugin

      protected final AlpinePlugin plugin
      The plugin that activated this engine
  • Constructor Details

    • AlpineEngine

      protected AlpineEngine(AlpinePlugin plugin)
      Locked down to prevent improper instantiation.

      Engines are reflectively instantiated by the framework automatically.

  • Method Details

    • activate

      public final void activate(@NotNull @NotNull AlpinePlugin context)
      Description copied from interface: Activatable
      Activate this object.
      Specified by:
      activate in interface Activatable
      Parameters:
      context - The plugin which initiated the request
    • deactivate

      public final void deactivate(@NotNull @NotNull AlpinePlugin context)
      Description copied from interface: Activatable
      Deactivate this object.
      Specified by:
      deactivate in interface Activatable
      Parameters:
      context - The plugin which initiated the request