Class OldNeoForgeInstance
-
- All Implemented Interfaces:
-
de.griefed.serverpackcreator.api.versionmeta.neoforge.NeoForgeInstance
public final class OldNeoForgeInstance implements NeoForgeInstance
An instance of a complete NeoForge combination, containing a Minecraft version, related NeoForge version and the URL to the server installer.
Griefed
-
-
Field Summary
Fields Modifier and Type Field Description private final StringminecraftVersionprivate final StringneoForgeVersionprivate final URLinstallerUrl
-
Constructor Summary
Constructors Constructor Description OldNeoForgeInstance(String minecraftVersion, String neoForgeVersion, MinecraftMeta minecraftMeta)
-
Method Summary
Modifier and Type Method Description StringgetMinecraftVersion()StringgetNeoForgeVersion()URLgetInstallerUrl()Where this build's installer is downloaded from. Optional<MinecraftClient>minecraftClient()Get this Forge instances corresponding Minecraft client instance, wrapped in an Optional -
-
Constructor Detail
-
OldNeoForgeInstance
OldNeoForgeInstance(String minecraftVersion, String neoForgeVersion, MinecraftMeta minecraftMeta)
- Parameters:
minecraftVersion- Minecraft version.neoForgeVersion- NeoForge version.minecraftMeta- The corresponding Minecraft client for this NeoForge version.
-
-
Method Detail
-
getMinecraftVersion
String getMinecraftVersion()
-
getNeoForgeVersion
String getNeoForgeVersion()
-
getInstallerUrl
URL getInstallerUrl()
Where this build's installer is downloaded from. Landmine: maven metadata can list a version whose installer 404s, so a failure here means "upstream is incomplete", not "the version does not exist".
-
minecraftClient
Optional<MinecraftClient> minecraftClient()
Get this Forge instances corresponding Minecraft client instance, wrapped in an Optional
- Returns:
Client wrapped in an Optional.
-
-
-
-