Class ConvertFtbQuests

java.lang.Object
me.pauleff.converter.plugins.ConvertFtbQuests
All Implemented Interfaces:
MOOCPlugin, MultiServerPlugin

public class ConvertFtbQuests extends Object implements MultiServerPlugin
Converts FTB Quests progress SNBT files between online and offline player UUIDs.

Runs for modded servers during an online/offline conversion. Operates on UUID-named progress files under the world's ftbquests folder; quest book definition files are left unchanged.

See Also:
  • Constructor Details

    • ConvertFtbQuests

      public ConvertFtbQuests()
  • Method Details

    • metadata

      public PluginMetadata metadata()
      Returns the metadata that identifies and describes this plugin.
      Specified by:
      metadata in interface MOOCPlugin
      Returns:
      the plugin metadata
    • compatibleServerTypes

      public List<ServerType> compatibleServerTypes()
      Returns ServerType.MODDED as the only compatible server type.
      Specified by:
      compatibleServerTypes in interface MultiServerPlugin
      Returns:
      a single-element list containing ServerType.MODDED
    • setTargets

      public List<Path> setTargets(PluginContext ctx)
      Returns the ftbquests folder under the world directory.
      Specified by:
      setTargets in interface MOOCPlugin
      Parameters:
      ctx - the shared conversion context
      Returns:
      a single-element list containing the FTB Quests folder path
    • run

      public void run(PluginContext ctx, List<Path> resolvedExistingTargets) throws IOException
      Converts UUID-named progress SNBT files under each resolved FTB Quests folder.
      Specified by:
      run in interface MOOCPlugin
      Parameters:
      ctx - the shared conversion context
      resolvedExistingTargets - the existing ftbquests directories to process
      Throws:
      IOException - if reading or writing progress files fails