Class NewNeoForgeInstance
-
- All Implemented Interfaces:
-
de.griefed.serverpackcreator.api.versionmeta.neoforge.NeoForgeInstance
public final class NewNeoForgeInstance 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 NewNeoForgeInstance(String minecraftVersion, String neoForgeVersion, MinecraftMeta minecraftMeta)
-
Method Summary
Modifier and Type Method Description StringgetMinecraftVersion()StringgetNeoForgeVersion()URLgetInstallerUrl()Optional<MinecraftClient>minecraftClient()Get this Forge instances corresponding Minecraft client instance, wrapped in an Optional -
-
Constructor Detail
-
NewNeoForgeInstance
NewNeoForgeInstance(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()
-
minecraftClient
Optional<MinecraftClient> minecraftClient()
Get this Forge instances corresponding Minecraft client instance, wrapped in an Optional
- Returns:
Client wrapped in an Optional.
-
-
-
-