Interface NeoForgeInstance
-
- All Implemented Interfaces:
public interface NeoForgeInstanceOne NeoForge build: which Minecraft it targets, the build itself, and where its installer is fetched from.
An interface with two implementations, because NeoForge changed where it publishes. Its first releases — Minecraft 1.20 and 1.20.1 — live under the legacy
net/neoforged/forge/artifact group and need both versions to address the installer (OldNeoForgeInstance); everything later is addressed by the bare NeoForge version (NewNeoForgeInstance).NeoForgeLoaderpicks the right one per build, so callers here see one type and never that split.Griefed
-
-
Method Summary
Modifier and Type Method Description abstract Optional<MinecraftClient>minecraftClient()Get this Forge instances corresponding Minecraft client instance, wrapped in an Optional abstract StringgetMinecraftVersion()abstract StringgetNeoForgeVersion()abstract URLgetInstallerUrl()-
-
Method Detail
-
minecraftClient
abstract Optional<MinecraftClient> minecraftClient()
Get this Forge instances corresponding Minecraft client instance, wrapped in an Optional
- Returns:
Client wrapped in an Optional.
-
getMinecraftVersion
abstract String getMinecraftVersion()
-
getNeoForgeVersion
abstract String getNeoForgeVersion()
-
getInstallerUrl
abstract URL getInstallerUrl()
-
-
-
-