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
FolderstringThe server's folder.
FromServerTypeThe type it is now.
ToServerTypeThe type it should become.
VersionMinecraftVersionThe Minecraft version to install the type for.
CurrentJavaPathstringThe Java the server has now; kept if a new one cannot be prepared.
MinRamGbintThe server's minimum RAM, written into the launch files.
MaxRamGbintThe server's maximum RAM, written into the launch files.
KeepRunBatboolThe user's own
run.batis 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
Folder
The server's folder.
public string Folder { get; init; }
Property Value
From
The type it is now.
public ServerType From { get; init; }
Property Value
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
MaxRamGb
The server's maximum RAM, written into the launch files.
public int MaxRamGb { get; init; }
Property Value
MinRamGb
The server's minimum RAM, written into the launch files.
public int MinRamGb { get; init; }
Property Value
To
The type it should become.
public ServerType To { get; init; }
Property Value
Version
The Minecraft version to install the type for.
public MinecraftVersion Version { get; init; }