public abstract class ModLoaderVersionBuilder<T extends IModLoaderVersion,B extends ModLoaderVersionBuilder<T,B>> extends java.lang.Object implements IBuilder<T>
Modifier and Type | Field and Description |
---|---|
protected BuilderArgument<CurseModPackInfo> |
curseModPackArgument |
protected BuilderArgument<java.util.List<CurseFileInfo>> |
curseModsArgument |
protected BuilderArgument<ModFileDeleter> |
fileDeleterArgument |
protected BuilderArgument<java.util.List<ModrinthVersionInfo>> |
modrinthModsArgument |
protected BuilderArgument<ModrinthModPackInfo> |
modrinthPackArgument |
protected BuilderArgument<java.util.List<Mod>> |
modsArgument |
Constructor and Description |
---|
ModLoaderVersionBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract T |
build()
Build a
T object. |
B |
withCurseModPack(CurseModPackInfo modPackInfo)
Assign to the future forge version a mod pack.
|
B |
withCurseMods(java.util.Collection<CurseFileInfo> curseMods)
Append a mod list to the version.
|
B |
withCurseMods(CurseFileInfo... curseMods)
Append a single mod or a mod array to the version.
|
B |
withCurseMods(java.lang.String jsonUrl)
Append mods contained in the provided JSON url.
|
B |
withCurseMods(java.net.URL jsonUrl)
Append mods contained in the provided JSON url.
|
B |
withFileDeleter(ModFileDeleter fileDeleter)
Append a file deleter to the version.
|
B |
withModrinthModPack(ModrinthModPackInfo modPackInfo)
Assign to the future forge version a mod pack.
|
B |
withModrinthMods(java.util.Collection<ModrinthVersionInfo> modrinthMods)
Append a mod list to the version.
|
B |
withModrinthMods(ModrinthVersionInfo... modrinthMods)
Append a single mod or a mod array to the version.
|
B |
withModrinthMods(java.lang.String jsonUrl)
Append mods contained in the provided JSON url.
|
B |
withModrinthMods(java.net.URL jsonUrl)
Append mods contained in the provided JSON url.
|
B |
withMods(java.util.List<Mod> mods)
Append a mod list to the version.
|
B |
withMods(Mod... mods)
Append a single mod or a mod array to the version.
|
B |
withMods(java.lang.String jsonUrl)
Append mods contained in the provided JSON url.
|
B |
withMods(java.net.URL jsonUrl)
Append mods contained in the provided JSON url.
|
protected final BuilderArgument<java.util.List<Mod>> modsArgument
protected final BuilderArgument<java.util.List<CurseFileInfo>> curseModsArgument
protected final BuilderArgument<java.util.List<ModrinthVersionInfo>> modrinthModsArgument
protected final BuilderArgument<ModFileDeleter> fileDeleterArgument
protected final BuilderArgument<CurseModPackInfo> curseModPackArgument
protected final BuilderArgument<ModrinthModPackInfo> modrinthPackArgument
public B withMods(java.util.List<Mod> mods)
mods
- mods to append.public B withMods(Mod... mods)
mods
- mods to append.public B withMods(java.net.URL jsonUrl)
jsonUrl
- The json URL of mods to append.public B withMods(java.lang.String jsonUrl)
jsonUrl
- The json URL of mods to append.public B withCurseMods(java.util.Collection<CurseFileInfo> curseMods)
curseMods
- CurseForge's mods to append.public B withCurseMods(CurseFileInfo... curseMods)
curseMods
- CurseForge's mods to append.public B withCurseMods(java.net.URL jsonUrl)
jsonUrl
- The json URL of mods to append.public B withCurseMods(java.lang.String jsonUrl)
jsonUrl
- The json URL of mods to append.public B withModrinthMods(java.util.Collection<ModrinthVersionInfo> modrinthMods)
modrinthMods
- Modrinth's mods to append.public B withModrinthMods(ModrinthVersionInfo... modrinthMods)
modrinthMods
- Modrinth's mods to append.public B withModrinthMods(java.net.URL jsonUrl)
jsonUrl
- The json URL of mods to append.public B withModrinthMods(java.lang.String jsonUrl)
jsonUrl
- The json URL of mods to append.public B withCurseModPack(CurseModPackInfo modPackInfo)
modPackInfo
- the mod pack information to assign.public B withModrinthModPack(ModrinthModPackInfo modPackInfo)
modPackInfo
- the mod pack information to assign.public B withFileDeleter(ModFileDeleter fileDeleter)
fileDeleter
- the file deleter to append.public abstract T build() throws BuilderException
IBuilder
T
object.build
in interface IBuilder<T extends IModLoaderVersion>
T
object.BuilderException
- if an error occurred when building an object.