public static class FlowUpdater.FlowUpdaterBuilder extends java.lang.Object implements IBuilder<FlowUpdater>
FlowUpdater
.Constructor and Description |
---|
FlowUpdaterBuilder() |
Modifier and Type | Method and Description |
---|---|
FlowUpdater |
build()
Build a new
FlowUpdater instance with provided arguments. |
FlowUpdater.FlowUpdaterBuilder |
withExternalFiles(java.util.Collection<ExternalFile> externalFiles)
Append a
List object in the final FlowUpdater instance. |
FlowUpdater.FlowUpdaterBuilder |
withExternalFiles(ExternalFile... externalFiles)
Append an array object in the final FlowUpdater instance.
|
FlowUpdater.FlowUpdaterBuilder |
withExternalFiles(java.lang.String externalFilesJsonUrl)
Append external files in the final FlowUpdater instance.
|
FlowUpdater.FlowUpdaterBuilder |
withExternalFiles(java.net.URL externalFilesJsonUrl)
Append external files in the final FlowUpdater instance.
|
FlowUpdater.FlowUpdaterBuilder |
withLogger(fr.flowarg.flowlogger.ILogger logger)
Append a
ILogger object in the final FlowUpdater instance. |
FlowUpdater.FlowUpdaterBuilder |
withModLoaderVersion(IModLoaderVersion modLoaderVersion)
Necessary if you want to install a mod loader like Forge or Fabric, for instance.
|
FlowUpdater.FlowUpdaterBuilder |
withPostExecutions(java.util.Collection<java.lang.Runnable> postExecutions)
Append a
List object in the final FlowUpdater instance. |
FlowUpdater.FlowUpdaterBuilder |
withPostExecutions(java.lang.Runnable... postExecutions)
Append an array object in the final FlowUpdater instance.
|
FlowUpdater.FlowUpdaterBuilder |
withProgressCallback(IProgressCallback callback)
Append a
IProgressCallback object in the final FlowUpdater instance. |
FlowUpdater.FlowUpdaterBuilder |
withUpdaterOptions(UpdaterOptions updaterOptions)
Append a
UpdaterOptions object in the final FlowUpdater instance. |
FlowUpdater.FlowUpdaterBuilder |
withVanillaVersion(VanillaVersion version)
Append a
VanillaVersion object in the final FlowUpdater instance. |
public FlowUpdater.FlowUpdaterBuilder withVanillaVersion(VanillaVersion version)
VanillaVersion
object in the final FlowUpdater instance.version
- the VanillaVersion
to append and install.public FlowUpdater.FlowUpdaterBuilder withLogger(fr.flowarg.flowlogger.ILogger logger)
ILogger
object in the final FlowUpdater instance.logger
- the ILogger
to append and use.public FlowUpdater.FlowUpdaterBuilder withUpdaterOptions(UpdaterOptions updaterOptions)
UpdaterOptions
object in the final FlowUpdater instance.updaterOptions
- the UpdaterOptions
to append and propagate.public FlowUpdater.FlowUpdaterBuilder withProgressCallback(IProgressCallback callback)
IProgressCallback
object in the final FlowUpdater instance.callback
- the IProgressCallback
to append and use.public FlowUpdater.FlowUpdaterBuilder withExternalFiles(java.util.Collection<ExternalFile> externalFiles)
List
object in the final FlowUpdater instance.externalFiles
- the List
to append and update.public FlowUpdater.FlowUpdaterBuilder withExternalFiles(ExternalFile... externalFiles)
externalFiles
- the array to append and update.public FlowUpdater.FlowUpdaterBuilder withExternalFiles(java.net.URL externalFilesJsonUrl)
externalFilesJsonUrl
- the URL of the json of external files append and update.public FlowUpdater.FlowUpdaterBuilder withExternalFiles(java.lang.String externalFilesJsonUrl)
externalFilesJsonUrl
- the URL of the json of external files append and update.public FlowUpdater.FlowUpdaterBuilder withPostExecutions(java.util.Collection<java.lang.Runnable> postExecutions)
List
object in the final FlowUpdater instance.postExecutions
- the List
to append and run after the update.public FlowUpdater.FlowUpdaterBuilder withPostExecutions(java.lang.Runnable... postExecutions)
postExecutions
- the array to append and run after the update.public FlowUpdater.FlowUpdaterBuilder withModLoaderVersion(IModLoaderVersion modLoaderVersion)
IModLoaderVersion
object in the final FlowUpdater instance.modLoaderVersion
- the IModLoaderVersion
to append and install.public FlowUpdater build() throws BuilderException
FlowUpdater
instance with provided arguments.build
in interface IBuilder<FlowUpdater>
FlowUpdater
instance.BuilderException
- if an error occurred on FlowUpdater instance building.