Class LoaderPaths
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
Where each mod loader leaves the files the launcher has to find again afterwards.
public static class LoaderPaths
- Inheritance
-
LoaderPaths
- Inherited Members
Remarks
Forge and NeoForge install to the same shape and differ only in their maven coordinates. Three separate places needed that path — the installer, the launcher and the detector — and each one had Forge's spelled out inline. Adding a loader while missing one of them produces a server that installs perfectly and then cannot be started, so the path lives here once instead.
Fields
ArgsFileLoaders
Every loader that launches through an args file rather than a runnable jar.
public static readonly ServerType[] ArgsFileLoaders
Field Value
Properties
ArgsFileName
The args file inside a version directory. Windows and Unix get different ones.
public static string ArgsFileName { get; }
Property Value
Methods
LibrariesRoot(string, ServerType)
The directory under the server folder holding one subdirectory per installed loader version,
or null for loaders launched with a plain -jar (Vanilla, Fabric, old Forge).
public static string? LibrariesRoot(string serverFolder, ServerType type)
Parameters
serverFolderstringtypeServerType