Package fr.flowarg.flowupdater
Class FlowUpdater.FlowUpdaterBuilder
java.lang.Object
fr.flowarg.flowupdater.FlowUpdater.FlowUpdaterBuilder
- All Implemented Interfaces:
IBuilder<FlowUpdater>
- Enclosing class:
- FlowUpdater
Builder of
FlowUpdater.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a newFlowUpdaterinstance with provided arguments.withExternalFiles(ExternalFile... externalFiles) Append an array object in the final FlowUpdater instance.withExternalFiles(String externalFilesJsonUrl) Append external files in the final FlowUpdater instance.withExternalFiles(URL externalFilesJsonUrl) Append external files in the final FlowUpdater instance.withExternalFiles(Collection<ExternalFile> externalFiles) Append aListobject in the final FlowUpdater instance.withLogger(fr.flowarg.flowlogger.ILogger logger) Append aILoggerobject in the final FlowUpdater instance.withModLoaderVersion(IModLoaderVersion modLoaderVersion) Necessary if you want to install a mod loader like Forge or Fabric, for instance.withPostExecutions(Runnable... postExecutions) Append an array object in the final FlowUpdater instance.withPostExecutions(Collection<Runnable> postExecutions) Append aListobject in the final FlowUpdater instance.withProgressCallback(IProgressCallback callback) Append aIProgressCallbackobject in the final FlowUpdater instance.withUpdaterOptions(UpdaterOptions updaterOptions) Append aUpdaterOptionsobject in the final FlowUpdater instance.withVanillaVersion(VanillaVersion version) Append aVanillaVersionobject in the final FlowUpdater instance.
-
Constructor Details
-
FlowUpdaterBuilder
public FlowUpdaterBuilder()
-
-
Method Details
-
withVanillaVersion
Append aVanillaVersionobject in the final FlowUpdater instance.- Parameters:
version- theVanillaVersionto append and install.- Returns:
- the builder.
-
withLogger
Append aILoggerobject in the final FlowUpdater instance.- Parameters:
logger- theILoggerto append and use.- Returns:
- the builder.
-
withUpdaterOptions
Append aUpdaterOptionsobject in the final FlowUpdater instance.- Parameters:
updaterOptions- theUpdaterOptionsto append and propagate.- Returns:
- the builder.
-
withProgressCallback
Append aIProgressCallbackobject in the final FlowUpdater instance.- Parameters:
callback- theIProgressCallbackto append and use.- Returns:
- the builder.
-
withExternalFiles
Append aListobject in the final FlowUpdater instance.- Parameters:
externalFiles- theListto append and update.- Returns:
- the builder.
-
withExternalFiles
Append an array object in the final FlowUpdater instance.- Parameters:
externalFiles- the array to append and update.- Returns:
- the builder.
-
withExternalFiles
Append external files in the final FlowUpdater instance.- Parameters:
externalFilesJsonUrl- the URL of the json of external files append and update.- Returns:
- the builder.
-
withExternalFiles
Append external files in the final FlowUpdater instance.- Parameters:
externalFilesJsonUrl- the URL of the json of external files append and update.- Returns:
- the builder.
-
withPostExecutions
Append aListobject in the final FlowUpdater instance.- Parameters:
postExecutions- theListto append and run after the update.- Returns:
- the builder.
-
withPostExecutions
Append an array object in the final FlowUpdater instance.- Parameters:
postExecutions- the array to append and run after the update.- Returns:
- the builder.
-
withModLoaderVersion
Necessary if you want to install a mod loader like Forge or Fabric, for instance. Append aIModLoaderVersionobject in the final FlowUpdater instance.- Parameters:
modLoaderVersion- theIModLoaderVersionto append and install.- Returns:
- the builder.
-
build
Build a newFlowUpdaterinstance with provided arguments.- Specified by:
buildin interfaceIBuilder<FlowUpdater>- Returns:
- the new
FlowUpdaterinstance. - Throws:
BuilderException- if an error occurred on FlowUpdater instance building.
-