Table of Contents

Class PerformancePicks

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

The short list of mods and plugins that make a server faster without changing how the game plays, from Resources/performance-picks.json.

public sealed class PerformancePicks
Inheritance
PerformancePicks
Inherited Members

Remarks

A short, fixed list on purpose: the page promises that nothing it suggests changes the game, so each entry was chosen by a person. The copy in the user's data folder (performance-picks.json) replaces the embedded one when present, the way the store's tags and summaries can be replaced, so the list can be fixed without a new build.

Whether a pick works for this server (a build for its loader and Minecraft version) is not known here; the page asks Modrinth for that and hides what has none.

Constructors

PerformancePicks(string?)

public PerformancePicks(string? overridePath = null)

Parameters

overridePath string

Properties

All

Every entry.

public IReadOnlyList<PerformancePick> All { get; }

Property Value

IReadOnlyList<PerformancePick>

Shared

The list as shipped (or as overridden), read once per run.

public static PerformancePicks Shared { get; }

Property Value

PerformancePicks

Methods

Suggest(ServerType, PerformanceCause, IReadOnlySet<string>, IEnumerable<string>, bool, bool)

The picks worth offering a server: those for its loader that are not installed, that do not clash with something that is, and, with the cause that matters first.

public IReadOnlyList<PerformancePick> Suggest(ServerType type, PerformanceCause cause, IReadOnlySet<string> installedModIds, IEnumerable<string> installedFiles, bool sparkBundled, bool includeSpark)

Parameters

type ServerType

The server type.

cause PerformanceCause

What is wrong now; the picks that relieve it come first.

installedModIds IReadOnlySet<string>

Ids the installed jars answer to.

installedFiles IEnumerable<string>

File names in the mods or plugins folder, for jars that carry no readable id.

sparkBundled bool

The server ships spark itself.

includeSpark bool

Offer spark: nothing else can measure the server.

Returns

IReadOnlyList<PerformancePick>