Interface MultiServerPlugin
- All Superinterfaces:
MOOCPlugin
- All Known Implementing Classes:
ConvertFtbQuests
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 Summary
Modifier and TypeMethodDescriptionReturns the server types this plugin supports.default booleanisEnabled(PluginContext ctx) Returnstruewhen a conversion is requested, the context has a non-nullserver type, and that type is listed bycompatibleServerTypes().Methods inherited from interface MOOCPlugin
logger, metadata, returnAllFilesInFolders, run, setTargets
-
Method Details
-
compatibleServerTypes
List<ServerType> compatibleServerTypes()Returns the server types this plugin supports.- Returns:
- the list of compatible
ServerTypevalues; nevernull
-
isEnabled
Returnstruewhen a conversion is requested, the context has a non-nullserver type, and that type is listed bycompatibleServerTypes().- Specified by:
isEnabledin interfaceMOOCPlugin- Parameters:
ctx- the shared conversion context- Returns:
trueif this plugin should run;falseotherwise
-