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
overridePathstring
Properties
All
Every entry.
public IReadOnlyList<PerformancePick> All { get; }
Property Value
Shared
The list as shipped (or as overridden), read once per run.
public static PerformancePicks Shared { get; }
Property Value
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
typeServerTypeThe server type.
causePerformanceCauseWhat is wrong now; the picks that relieve it come first.
installedModIdsIReadOnlySet<string>Ids the installed jars answer to.
installedFilesIEnumerable<string>File names in the mods or plugins folder, for jars that carry no readable id.
sparkBundledboolThe server ships spark itself.
includeSparkboolOffer spark: nothing else can measure the server.