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, setTargetsModifier and TypeMethodDescriptiondefault org.slf4j.Loggerlogger()Returns a logger named after the runtime class of this plugin.metadata()Returns the metadata that identifies and describes this plugin.returnAllFilesInFolders(List<Path> worldDimensionRootFolders) Collects all regular files under the given world dimension root folders.voidrun(PluginContext ctx, List<Path> resolvedExistingTargets) Executes this plugin's conversion or inspection logic.setTargets(PluginContext ctx) Determines the candidate file or directory paths this plugin may operate on.
-
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
-