public static class UpdaterOptions.UpdaterOptionsBuilder extends java.lang.Object implements IBuilder<UpdaterOptions>
UpdaterOptions| Constructor and Description |
|---|
UpdaterOptionsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
UpdaterOptions |
build()
Build an
UpdaterOptions object. |
UpdaterOptions.UpdaterOptionsBuilder |
withExternalFileDeleter(ExternalFileDeleter externalFileDeleter)
Append an
ExternalFileDeleter object. |
UpdaterOptions.UpdaterOptionsBuilder |
withJavaPath(java.lang.String javaPath)
Set the path to the java executable to use with Forge and Fabric installers.
|
UpdaterOptions.UpdaterOptionsBuilder |
withVersionChecker(boolean versionChecker)
Enable or disable the version checker.
|
public UpdaterOptions.UpdaterOptionsBuilder withExternalFileDeleter(ExternalFileDeleter externalFileDeleter)
ExternalFileDeleter object.externalFileDeleter - the file deleter to define.public UpdaterOptions.UpdaterOptionsBuilder withVersionChecker(boolean versionChecker)
versionChecker - the value to define.public UpdaterOptions.UpdaterOptionsBuilder withJavaPath(java.lang.String javaPath)
System.setProperty(String, String) method
with the "java.home" key.
By default, it's taken from System.getProperty("java.home").javaPath - the path to the java executable.public UpdaterOptions build() throws BuilderException
UpdaterOptions object.build in interface IBuilder<UpdaterOptions>T object.BuilderException - if an error occurred when building an object.