public class ForgeVersionBuilder extends ModLoaderVersionBuilder<ForgeVersion,ForgeVersionBuilder>
ForgeVersion
curseModPackArgument, curseModsArgument, fileDeleterArgument, modrinthModsArgument, modrinthPackArgument, modsArgument
Constructor and Description |
---|
ForgeVersionBuilder() |
Modifier and Type | Method and Description |
---|---|
ForgeVersion |
build()
Build a
T object. |
ForgeVersionBuilder |
withForgeVersion(java.lang.String forgeVersion) |
ForgeVersionBuilder |
withOptiFine(OptiFineInfo optiFineInfo)
Append some OptiFine download's information.
|
withCurseModPack, withCurseMods, withCurseMods, withCurseMods, withCurseMods, withFileDeleter, withModrinthModPack, withModrinthMods, withModrinthMods, withModrinthMods, withModrinthMods, withMods, withMods, withMods, withMods
public ForgeVersionBuilder withForgeVersion(java.lang.String forgeVersion)
forgeVersion
- the Forge version you want to install. You should be very precise with the string you give.
For instance, "1.18.2-40.2.21", "1.12.2-14.23.5.2860", "1.8.9-11.15.1.2318-1.8.9", "1.7.10-10.13.4.1614-1.7.10" are correct.
Download an installer and check the name of it to get the correct version you should provide here if you are not sure.public ForgeVersionBuilder withOptiFine(OptiFineInfo optiFineInfo)
optiFineInfo
- provided information.public ForgeVersion build() throws BuilderException
IBuilder
T
object.build
in interface IBuilder<ForgeVersion>
build
in class ModLoaderVersionBuilder<ForgeVersion,ForgeVersionBuilder>
T
object.BuilderException
- if an error occurred when building an object.