Class ConvertModdedServer
java.lang.Object
me.pauleff.converter.plugins.ConvertModdedServer
- All Implemented Interfaces:
MOOCPlugin, ServerTypePlugin
Converts world files for a modded Minecraft server (Forge, Fabric, and similar).
Targeting and conversion are inherited from AbstractWorldConversionPlugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnsServerType.MODDED.booleanisEnabled(PluginContext ctx) Returnstruewhen a conversion is requested, the server type matches, and conversion is not limited to a CLI-customFolderor-customFile.metadata()Returns the metadata that identifies and describes this plugin.voidrun(PluginContext ctx, List<Path> resolvedExistingTargets) Runs UUID conversion on the resolved existing world files viaConverterV3.setTargets(PluginContext ctx) Returns every regular file under the dimension root folders for the detected world folder structure.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MOOCPlugin
logger, returnAllFilesInFolders
-
Constructor Details
-
ConvertModdedServer
public ConvertModdedServer()
-
-
Method Details
-
compatibleServerType
-
metadata
Returns the metadata that identifies and describes this plugin.- Returns:
- the plugin metadata
-
isEnabled
Returnstruewhen a conversion is requested, the server type matches, and conversion is not limited to a CLI-customFolderor-customFile.- Specified by:
isEnabledin interfaceMOOCPlugin- Specified by:
isEnabledin interfaceServerTypePlugin- Parameters:
ctx- the shared conversion context- Returns:
trueif this plugin should run;falseotherwise
-
setTargets
Returns every regular file under the dimension root folders for the detected world folder structure.- Specified by:
setTargetsin interfaceMOOCPlugin- Parameters:
ctx- the shared conversion context- Returns:
- all regular files beneath the dimension roots; never
null
-
run
Runs UUID conversion on the resolved existing world files viaConverterV3.- Specified by:
runin interfaceMOOCPlugin- Parameters:
ctx- the shared conversion contextresolvedExistingTargets- the existing target paths to process- Throws:
IOException- if reading or writing world files fails
-