Namespace McServerLauncher.ViewModels
Classes
- ActiveFilterViewModel
One chip in the "what is filtering right now" row. Some of them are the server's own loader and version, which are not the user's to remove; the rest are categories, which are.
- BackupItemViewModel
A single backup entry shown in the list.
- BedrockAddressStates
The line of explanation each state shows.
- BoolOpacityConverter
true -> fully opaque, false -> dimmed. Used to fade disabled mods in the list.
- BulkObservableCollection<T>
ObservableCollection with bulk operations that raise a single Reset event instead of one CollectionChanged per element. Used by the console lists (EFI-4): a verbose server (e.g. Forge booting) used to pay one RemoveAt(0) — an O(n) array shift plus a UI notification — for every line beyond the cap; trimming in blocks makes that a single cheap Reset every couple hundred lines, which the virtualized ListBox absorbs by re-rendering only the visible viewport.
- ConsoleBrushConverter
A console line's kind to the brush it is drawn in.
- ConsoleHighlightConverter
A line plus what is being searched for, as text with the matches marked inside it.
- ConsoleKindFilter
One category of console line, as a toggle with a count behind it.
- ConsolePalette
The console colours, as something Avalonia can draw with.
- ExternalLinkViewModel
An external link shown in the details page (source, wiki, Discord…).
- GalleryImageViewModel
One gallery image: a thumbnail for the strip and the full picture for the viewer.
- HexBrushConverter
A hex string to a brush, for the live preview beside each colour box in the settings.
- MainViewModel
Main ViewModel: manages the server list, the selected server and persistence.
- ModDetailsViewModel
The details page of one store item: everything Modrinth knows about a project, plus the two things Modrinth doesn't say — what it does in plain language, and whether it fits this server.
It paints in two passes. What the search result already carried (title, author, icon, summary) is shown at once, so opening a mod is instant; the long description, gallery, versions, dependencies and related items arrive as their requests come back. Nothing here decides whether a version is compatible or how a file is installed: both come from the existing services.
- ModVersionViewModel
One published version, with the button that installs exactly that one.
- ModrinthProjectViewModel
One card in the browser: a store item, its tags, and the two buttons it offers.
- NoticeBrushConverter
Background for the install banner: red when the install failed, green when it worked. Colour is the part of the message people read first, so it carries the outcome as well as the words do.
- NotificationBrushes
The configured notification colours, as something Avalonia can draw with.
- ServerBackupsViewModel
Manages world backups for a server: lists existing zip snapshots, and lets the user trigger one manually, restore an earlier one, or delete one. Automatic backups (before every start, after an explicit stop) are triggered by ServerViewModel itself; this view model is just the UI surface over the same WorldBackupService.
- ServerModsViewModel
A base class for objects of which the properties must be observable.
- ServerTypeBrushes
The per-type badge colours, as brushes.
- ServerViewModel
The crossplay half of ServerViewModel: Geyser, the Bedrock tunnel and the address.
- StoreLinkViewModel
A dependency or a related project: a card that opens its own details page.
- StoreTagViewModel
A tag as the interface shows it: translated name and its colour.
Enums
- BedrockAddressState
How far along the Bedrock address is for a server that has crossplay switched on.