Class ServerDetection
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
What a server folder turned out to contain.
public sealed record ServerDetection : IEquatable<ServerDetection>
- Inheritance
-
ServerDetection
- Implements
- Inherited Members
Remarks
Every field is optional: a folder can be half a server, or not one at all, and the caller shows what was found and asks for the rest rather than refusing.
Properties
ForgeArgs
The Forge/NeoForge id whose args file launches the server.
public string? ForgeArgs { get; init; }
Property Value
GameVersion
public string? GameVersion { get; init; }
Property Value
HasWorld
public bool HasWorld { get; init; }
Property Value
IsComplete
Enough to start it: what it is, which Minecraft, and what to launch.
public bool IsComplete { get; }
Property Value
JarFile
The jar to run, relative to the folder; null for loaders launched through an args file.
public string? JarFile { get; init; }
Property Value
Jars
Every jar in the folder's root, installers left out, for choosing one by hand.
public IReadOnlyList<string> Jars { get; init; }
Property Value
LoaderVersion
public string? LoaderVersion { get; init; }
Property Value
MaxRamGb
public int? MaxRamGb { get; init; }
Property Value
- int?
MinRamGb
public int? MinRamGb { get; init; }
Property Value
- int?
Nothing
public static ServerDetection Nothing { get; }
Property Value
Port
public int? Port { get; init; }
Property Value
- int?
Type
public ServerType? Type { get; init; }