Class ConvertFtbQuests
java.lang.Object
me.pauleff.converter.plugins.ConvertFtbQuests
- All Implemented Interfaces:
MOOCPlugin, 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnsServerType.MODDEDas the only compatible server type.booleanisEnabled(PluginContext ctx) Returnstruewhen a conversion is requested, the server is modded, and theftbquestsfolder is inside the conversion scope.metadata()Returns the metadata that identifies and describes this plugin.voidrun(PluginContext ctx, List<Path> resolvedExistingTargets) Converts UUID-named progress SNBT files under each resolved FTB Quests folder.setTargets(PluginContext ctx) Returns theftbquestsfolder under the world directory.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MOOCPlugin
logger, returnAllFilesInFolders
-
Constructor Details
-
ConvertFtbQuests
public ConvertFtbQuests()
-
-
Method Details
-
metadata
Returns the metadata that identifies and describes this plugin.- Specified by:
metadatain interfaceMOOCPlugin- Returns:
- the plugin metadata
-
compatibleServerTypes
ReturnsServerType.MODDEDas the only compatible server type.- Specified by:
compatibleServerTypesin interfaceMultiServerPlugin- Returns:
- a single-element list containing
ServerType.MODDED
-
isEnabled
Returnstruewhen a conversion is requested, the server is modded, and theftbquestsfolder is inside the conversion scope.- Specified by:
isEnabledin interfaceMOOCPlugin- Specified by:
isEnabledin interfaceMultiServerPlugin- Parameters:
ctx- the shared conversion context- Returns:
trueif this plugin should run;falseotherwise
-
setTargets
Returns theftbquestsfolder under the world directory.- Specified by:
setTargetsin interfaceMOOCPlugin- Parameters:
ctx- the shared conversion context- Returns:
- a single-element list containing the FTB Quests folder path
-
run
Converts UUID-named progress SNBT files under each resolved FTB Quests folder.- Specified by:
runin interfaceMOOCPlugin- Parameters:
ctx- the shared conversion contextresolvedExistingTargets- the existingftbquestsdirectories to process- Throws:
IOException- if reading or writing progress files fails
-