Class ConverterV3

java.lang.Object
me.pauleff.converter.ConverterV3

public final class ConverterV3 extends Object
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 Details

    • ConverterV3

      public ConverterV3(PluginContext ctx)
      Creates a converter bound to the given plugin context.
      Parameters:
      ctx - the shared conversion context supplying the target mode and UUID map
      Throws:
      NullPointerException - if ctx is null
  • Method Details

    • convert

      public void convert(List<Path> toConvert)
      Converts the given files according to the context's ConversionTarget.

      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