public final class ForgeInstance
extends java.lang.Object
| Constructor and Description |
|---|
ForgeInstance(java.lang.String minecraftVersion,
java.lang.String forgeVersion,
MinecraftMeta minecraftMeta)
Create a new ForgeInstance instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
forgeVersion()
Get the Forge version of this Forge instance.
|
java.net.URL |
installerUrl()
Get the URL to the Forge server installer for this instances Minecraft and Forge version.
|
java.util.Optional<MinecraftClient> |
minecraftClient()
Get this Forge instances corresponding Minecraft client instance, wrapped in an
Optional |
java.lang.String |
minecraftVersion()
Get the Minecraft version of this Forge instance.
|
public ForgeInstance(java.lang.String minecraftVersion,
java.lang.String forgeVersion,
MinecraftMeta minecraftMeta)
throws java.net.MalformedURLException
minecraftVersion - Minecraft version.forgeVersion - Forge version.minecraftMeta - The corresponding Minecraft client for this Forge version.java.net.MalformedURLException - if the URL to the download of the Forge server installer could
not be created.public java.lang.String minecraftVersion()
public java.lang.String forgeVersion()
public java.net.URL installerUrl()
URL to the Forge server installer JAR-file.public java.util.Optional<MinecraftClient> minecraftClient()
OptionalOptional.