Table of Contents

Class InstalledModFilter

Namespace
McServerLauncher.ViewModels
Assembly
McServerLauncher.dll

Whether an installed jar matches what was typed in the installed list's search box.

public static class InstalledModFilter
Inheritance
InstalledModFilter
Inherited Members

Remarks

Every word typed has to appear somewhere in the file name, in any order and in any case. Hyphens, underscores and dots count as spaces on both sides, because that is how jars are named and not how people type: "sodium extra" has to find sodium-extra-0.5.4+mc1.21.jar.

Only the file name, never the jar's contents. The name carries the mod's name almost always, and opening every jar on every keystroke to read its manifest would cost far more than the handful of cases it would catch.

Methods

Matches(string, IReadOnlyList<string>)

public static bool Matches(string fileName, IReadOnlyList<string> words)

Parameters

fileName string
words IReadOnlyList<string>

Returns

bool

Words(string?)

The words of a search, lower-cased; none at all for an empty box.

public static string[] Words(string? search)

Parameters

search string

Returns

string[]