Class ConverterV3
java.lang.Object
me.pauleff.converter.ConverterV3
Converts Minecraft world and player files between online and offline UUID modes.
Renames files whose base name is a convertible UUID and rewrites UUID string
references inside text-based files, using mappings from the shared PluginContext.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConverterV3(PluginContext ctx) Creates a converter bound to the given plugin context. -
Method Summary
Modifier and TypeMethodDescriptionvoidConverts the given files according to the context'sConversionTarget.
-
Constructor Details
-
ConverterV3
Creates a converter bound to the given plugin context.- Parameters:
ctx- the shared conversion context supplying the target mode and UUID map- Throws:
NullPointerException- ifctxisnull
-
-
Method Details
-
convert
Converts the given files according to the context'sConversionTarget.Skips non-regular files and paths with ignored extensions. For each remaining file, renames UUID-named files when a mapping exists and the UUID version matches the conversion direction, then replaces mapped UUID strings in text-based content. Per-file errors are logged and processing continues.
- Parameters:
toConvert- the candidate file paths to process
-