Package fr.flowarg.flowupdater.versions
Class ModLoaderVersionBuilder<T extends IModLoaderVersion,B extends ModLoaderVersionBuilder<T,B>>
java.lang.Object
fr.flowarg.flowupdater.versions.ModLoaderVersionBuilder<T,B>
- All Implemented Interfaces:
IBuilder<T>
- Direct Known Subclasses:
FabricVersionBuilder,ForgeVersionBuilder,NeoForgeVersionBuilder,QuiltVersionBuilder
public abstract class ModLoaderVersionBuilder<T extends IModLoaderVersion,B extends ModLoaderVersionBuilder<T,B>>
extends Object
implements IBuilder<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BuilderArgument<CurseModPackInfo>protected final BuilderArgument<List<CurseFileInfo>>protected final BuilderArgument<ModFileDeleter>protected final BuilderArgument<List<ModrinthVersionInfo>>protected final BuilderArgument<ModrinthModPackInfo>protected final BuilderArgument<List<Mod>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Tbuild()Build aIBuilderobject.withCurseModPack(CurseModPackInfo modPackInfo) Assign to the future forge version a mod pack.withCurseMods(CurseFileInfo... curseMods) Append a single mod or a mod array to the version.withCurseMods(String jsonUrl) Append mods contained in the provided JSON url.withCurseMods(URL jsonUrl) Append mods contained in the provided JSON url.withCurseMods(Collection<CurseFileInfo> curseMods) Append a mod list to the version.withFileDeleter(ModFileDeleter fileDeleter) Append a file deleter to the version.withModrinthModPack(ModrinthModPackInfo modPackInfo) Assign to the future forge version a mod pack.withModrinthMods(ModrinthVersionInfo... modrinthMods) Append a single mod or a mod array to the version.withModrinthMods(String jsonUrl) Append mods contained in the provided JSON url.withModrinthMods(URL jsonUrl) Append mods contained in the provided JSON url.withModrinthMods(Collection<ModrinthVersionInfo> modrinthMods) Append a mod list to the version.Append a single mod or a mod array to the version.Append mods contained in the provided JSON url.Append mods contained in the provided JSON url.Append a mod list to the version.
-
Field Details
-
modsArgument
-
curseModsArgument
-
modrinthModsArgument
-
fileDeleterArgument
-
curseModPackArgument
-
modrinthPackArgument
-
-
Constructor Details
-
ModLoaderVersionBuilder
public ModLoaderVersionBuilder()
-
-
Method Details
-
withMods
Append a mod list to the version.- Parameters:
mods- mods to append.- Returns:
- the builder.
-
withMods
Append a single mod or a mod array to the version.- Parameters:
mods- mods to append.- Returns:
- the builder.
-
withMods
Append mods contained in the provided JSON url.- Parameters:
jsonUrl- The json URL of mods to append.- Returns:
- the builder.
-
withMods
Append mods contained in the provided JSON url.- Parameters:
jsonUrl- The json URL of mods to append.- Returns:
- the builder.
-
withCurseMods
Append a mod list to the version.- Parameters:
curseMods- CurseForge's mods to append.- Returns:
- the builder.
-
withCurseMods
Append a single mod or a mod array to the version.- Parameters:
curseMods- CurseForge's mods to append.- Returns:
- the builder.
-
withCurseMods
Append mods contained in the provided JSON url.- Parameters:
jsonUrl- The json URL of mods to append.- Returns:
- the builder.
-
withCurseMods
Append mods contained in the provided JSON url.- Parameters:
jsonUrl- The json URL of mods to append.- Returns:
- the builder.
-
withModrinthMods
Append a mod list to the version.- Parameters:
modrinthMods- Modrinth's mods to append.- Returns:
- the builder.
-
withModrinthMods
Append a single mod or a mod array to the version.- Parameters:
modrinthMods- Modrinth's mods to append.- Returns:
- the builder.
-
withModrinthMods
Append mods contained in the provided JSON url.- Parameters:
jsonUrl- The json URL of mods to append.- Returns:
- the builder.
-
withModrinthMods
Append mods contained in the provided JSON url.- Parameters:
jsonUrl- The json URL of mods to append.- Returns:
- the builder.
-
withCurseModPack
Assign to the future forge version a mod pack.- Parameters:
modPackInfo- the mod pack information to assign.- Returns:
- the builder.
-
withModrinthModPack
Assign to the future forge version a mod pack.- Parameters:
modPackInfo- the mod pack information to assign.- Returns:
- the builder.
-
withFileDeleter
Append a file deleter to the version.- Parameters:
fileDeleter- the file deleter to append.- Returns:
- the builder.
-
build
Description copied from interface:IBuilderBuild aIBuilderobject.- Specified by:
buildin interfaceIBuilder<T extends IModLoaderVersion>- Returns:
- a
IBuilderobject. - Throws:
BuilderException- if an error occurred when building an object.
-