Class ForgeVersionBuilder

All Implemented Interfaces:
IBuilder<ForgeVersion>

public class ForgeVersionBuilder extends ModLoaderVersionBuilder<ForgeVersion,ForgeVersionBuilder>
Builder for ForgeVersion
  • Constructor Details

    • ForgeVersionBuilder

      public ForgeVersionBuilder()
  • Method Details

    • withForgeVersion

      public ForgeVersionBuilder withForgeVersion(String forgeVersion)
      Parameters:
      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.
      Returns:
      the builder.
    • withOptiFine

      public ForgeVersionBuilder withOptiFine(OptiFineInfo optiFineInfo)
      Append some OptiFine download's information.
      Parameters:
      optiFineInfo - provided information.
      Returns:
      the builder.
    • build

      public ForgeVersion build() throws BuilderException
      Description copied from interface: IBuilder
      Build a IBuilder object.
      Specified by:
      build in interface IBuilder<ForgeVersion>
      Specified by:
      build in class ModLoaderVersionBuilder<ForgeVersion,ForgeVersionBuilder>
      Returns:
      a IBuilder object.
      Throws:
      BuilderException - if an error occurred when building an object.