public class ForgeInstance
extends java.lang.Object
| Constructor and Description |
|---|
ForgeInstance(java.lang.String minecraftVersion,
java.lang.String forgeVersion,
MinecraftMeta minecraftMeta)
Constructor.
|
| 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 - String Minecraft version.forgeVersion - String Forge version.minecraftMeta - 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()
String Minecraft version.public java.lang.String forgeVersion()
String Forge version.public java.net.URL installerUrl()
URL to the Forge server installer JAR-file.public java.util.Optional<MinecraftClient> minecraftClient()
OptionalMinecraftClient wrapped in an Optional.