Interface MultiServerPlugin

All Superinterfaces:
MOOCPlugin
All Known Implementing Classes:
ConvertFtbQuests

public non-sealed interface MultiServerPlugin extends MOOCPlugin
A MOOCPlugin that applies to one or more ServerType values.

Enablement requires an active conversion operation and that the context's server type is contained in compatibleServerTypes().

  • Method Details

    • compatibleServerTypes

      List<ServerType> compatibleServerTypes()
      Returns the server types this plugin supports.
      Returns:
      the list of compatible ServerType values; never null
    • isEnabled

      default boolean isEnabled(PluginContext ctx)
      Returns true when a conversion is requested, the context has a non-null server type, and that type is listed by compatibleServerTypes().
      Specified by:
      isEnabled in interface MOOCPlugin
      Parameters:
      ctx - the shared conversion context
      Returns:
      true if this plugin should run; false otherwise