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.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, returnAllFilesInFoldersMethods inherited from interface ServerTypePlugin
isEnabledModifier and TypeMethodDescriptiondefault booleanisEnabled(PluginContext ctx) Returnstruewhen a conversion is requested and the context's server type equalsServerTypePlugin.compatibleServerType().
-
Constructor Details
-
ConvertModdedServer
public ConvertModdedServer()
-
-
Method Details
-
compatibleServerType
-
metadata
Returns the metadata that identifies and describes this plugin.- Returns:
- the plugin metadata
-
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
-