Table of Contents

Class ClientPack

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

The jars a server's players need and the server must not load: Sodium, MaLiLib, a minimap.

public static class ClientPack
Inheritance
ClientPack
Inherited Members

Remarks

A client-only mod does nothing on a server. Fabric skips it, but Forge and NeoForge can refuse to start over it, and either way it is a file the server carries for no reason. So the store keeps them apart: they are downloaded, verified and listed like any other mod, into a folder of their own, and the export puts them in the pack the players are handed.

The folder lives under the app's data, content\<serverId>\client, next to the server's ledger and for the same reason: it is the app's view of the server, so it neither travels with the world nor fills its backups, the server never reads it, and removing the server removes it too (PruneOrphans(IEnumerable<string>) clears the whole id folder).

Methods

FolderOf(ServerConfig)

Where this server's players' jars are kept.

public static string FolderOf(ServerConfig config)

Parameters

config ServerConfig

Returns

string

Jars(ServerConfig)

Every jar in the pack, by file name. Empty when there is no folder yet.

public static IReadOnlyList<string> Jars(ServerConfig config)

Parameters

config ServerConfig

Returns

IReadOnlyList<string>