Class ConvertCliTargetFolder
java.lang.Object
me.pauleff.converter.plugins.ConvertCliTargetFolder
- All Implemented Interfaces:
DefaultPlugin, MOOCPlugin
Converts every regular file under the CLI
-customFolder path.
Enabled only when an online/offline conversion is requested and -customFolder is set.
Detection still runs against the full server so save format, world layout, and UUID
mappings stay accurate; only files inside the target folder are rewritten.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEnabled(PluginContext ctx) Returnstruewhen a conversion was requested and-customFolderis set.metadata()Returns the metadata that identifies and describes this plugin.voidrun(PluginContext ctx, List<Path> resolvedExistingTargets) Runs UUID conversion on the resolved files viaConverterV3.setTargets(PluginContext ctx) Returns every regular file under the resolved conversion folder.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MOOCPlugin
logger, returnAllFilesInFolders
-
Constructor Details
-
ConvertCliTargetFolder
public ConvertCliTargetFolder()
-
-
Method Details
-
metadata
Returns the metadata that identifies and describes this plugin.- Specified by:
metadatain interfaceMOOCPlugin- Returns:
- the plugin metadata
-
isEnabled
Returnstruewhen a conversion was requested and-customFolderis set.- Specified by:
isEnabledin interfaceDefaultPlugin- Specified by:
isEnabledin interfaceMOOCPlugin- Parameters:
ctx- the shared conversion context- Returns:
trueif this plugin should run;falseotherwise
-
setTargets
Returns every regular file under the resolved conversion folder.- Specified by:
setTargetsin interfaceMOOCPlugin- Parameters:
ctx- the shared conversion context- Returns:
- all regular files beneath the conversion folder; never
null
-
run
Runs UUID conversion on the resolved files viaConverterV3.- Specified by:
runin interfaceMOOCPlugin- Parameters:
ctx- the shared conversion contextresolvedExistingTargets- the existing target paths to process- Throws:
IOException- if reading or writing files fails
-