Class ForgeInstance
-
- All Implemented Interfaces:
public final class ForgeInstanceAn instance of a complete Forge combination, containing a Minecraft version, related Forge version and the URL to the server installer.
Griefed
-
-
Field Summary
Fields Modifier and Type Field Description private final StringminecraftVersionprivate final StringforgeVersionprivate final URLinstallerUrl
-
Constructor Summary
Constructors Constructor Description ForgeInstance(String minecraftVersion, String forgeVersion, MinecraftMeta minecraftMeta)
-
Method Summary
Modifier and Type Method Description final StringgetMinecraftVersion()The Minecraft release this Forge build is for, and what minecraftClient resolves against. final StringgetForgeVersion()The Forge build, spelled as Forge's own maven names it -- so 47.4.0, not1.20.1-47.4.0.final URLgetInstallerUrl()Where this Forge build's installer is downloaded from. final Optional<MinecraftClient>minecraftClient()Get this Forge instances corresponding Minecraft client instance, wrapped in an Optional -
-
Constructor Detail
-
ForgeInstance
ForgeInstance(String minecraftVersion, String forgeVersion, MinecraftMeta minecraftMeta)
- Parameters:
minecraftMeta- The corresponding Minecraft client for this Forge version.
-
-
Method Detail
-
getMinecraftVersion
final String getMinecraftVersion()
The Minecraft release this Forge build is for, and what minecraftClient resolves against.
-
getForgeVersion
final String getForgeVersion()
The Forge build, spelled as Forge's own maven names it -- so
47.4.0, not1.20.1-47.4.0.
-
getInstallerUrl
final URL getInstallerUrl()
Where this Forge build's installer is downloaded from.
-
minecraftClient
final Optional<MinecraftClient> minecraftClient()
Get this Forge instances corresponding Minecraft client instance, wrapped in an Optional
- Returns:
Client wrapped in an Optional.
-
-
-
-