Table of Contents

Class LoaderChange

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

What the Loader page asks for: change this server's type, keeping its world.

public sealed record LoaderChange : IEquatable<LoaderChange>
Inheritance
LoaderChange
Implements
Inherited Members

Constructors

LoaderChange(string, ServerType, ServerType, MinecraftVersion, string, int, int, bool)

What the Loader page asks for: change this server's type, keeping its world.

public LoaderChange(string Folder, ServerType From, ServerType To, MinecraftVersion Version, string CurrentJavaPath, int MinRamGb, int MaxRamGb, bool KeepRunBat)

Parameters

Folder string

The server's folder.

From ServerType

The type it is now.

To ServerType

The type it should become.

Version MinecraftVersion

The Minecraft version to install the type for.

CurrentJavaPath string

The Java the server has now; kept if a new one cannot be prepared.

MinRamGb int

The server's minimum RAM, written into the launch files.

MaxRamGb int

The server's maximum RAM, written into the launch files.

KeepRunBat bool

The user's own run.bat is restored after the install, and the loader's JVM-args file is left alone.

Properties

CurrentJavaPath

The Java the server has now; kept if a new one cannot be prepared.

public string CurrentJavaPath { get; init; }

Property Value

string

Folder

The server's folder.

public string Folder { get; init; }

Property Value

string

From

The type it is now.

public ServerType From { get; init; }

Property Value

ServerType

KeepRunBat

The user's own run.bat is restored after the install, and the loader's JVM-args file is left alone.

public bool KeepRunBat { get; init; }

Property Value

bool

MaxRamGb

The server's maximum RAM, written into the launch files.

public int MaxRamGb { get; init; }

Property Value

int

MinRamGb

The server's minimum RAM, written into the launch files.

public int MinRamGb { get; init; }

Property Value

int

To

The type it should become.

public ServerType To { get; init; }

Property Value

ServerType

Version

The Minecraft version to install the type for.

public MinecraftVersion Version { get; init; }

Property Value

MinecraftVersion