Table of Contents

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

string

GameVersion

public string? GameVersion { get; init; }

Property Value

string

HasWorld

public bool HasWorld { get; init; }

Property Value

bool

IsComplete

Enough to start it: what it is, which Minecraft, and what to launch.

public bool IsComplete { get; }

Property Value

bool

JarFile

The jar to run, relative to the folder; null for loaders launched through an args file.

public string? JarFile { get; init; }

Property Value

string

Jars

Every jar in the folder's root, installers left out, for choosing one by hand.

public IReadOnlyList<string> Jars { get; init; }

Property Value

IReadOnlyList<string>

LoaderVersion

public string? LoaderVersion { get; init; }

Property Value

string

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

ServerDetection

Port

public int? Port { get; init; }

Property Value

int?

Type

public ServerType? Type { get; init; }

Property Value

ServerType?