public final class ForgeInstance
extends java.lang.Object
| Constructor and Description |
|---|
ForgeInstance(@NotNull java.lang.String minecraftVersion,
@NotNull java.lang.String forgeVersion,
@NotNull MinecraftMeta minecraftMeta)
Create a new ForgeInstance instance.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.lang.String |
forgeVersion()
Get the Forge version of this Forge instance.
|
@NotNull java.net.URL |
installerUrl()
Get the URL to the Forge server installer for this instances Minecraft and Forge version.
|
@NotNull java.util.Optional<MinecraftClient> |
minecraftClient()
Get this Forge instances corresponding Minecraft client instance, wrapped in an
Optional |
@NotNull java.lang.String |
minecraftVersion()
Get the Minecraft version of this Forge instance.
|
public ForgeInstance(@NotNull
@NotNull java.lang.String minecraftVersion,
@NotNull
@NotNull java.lang.String forgeVersion,
@NotNull
@NotNull 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.@Contract(pure=true) @NotNull public @NotNull java.lang.String minecraftVersion()
@Contract(pure=true) @NotNull public @NotNull java.lang.String forgeVersion()
@Contract(pure=true) @NotNull public @NotNull java.net.URL installerUrl()
URL to the Forge server installer JAR-file.@NotNull public @NotNull java.util.Optional<MinecraftClient> minecraftClient()
OptionalOptional.