Table of Contents

Class ModItem

Namespace
McServerLauncher.Models
Assembly
McServerLauncher.dll

One mod or plugin file already sitting in a server's content folder, as the Mods tab shows it.

public class ModItem : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
ModItem
Implements
Inherited Members

Remarks

A disabled item is the same file with .disabled appended.

Rows do not last: the Mods tab rebuilds the whole list from disk after every update, enable, disable and delete. Anything that has to survive that — the newer version the last update check found — is therefore kept by ServerModsViewModel and handed back to each rebuilt row, not stored only here. Storing it only here is exactly how updating one mod used to make the buttons on all the others disappear.

Constructors

ModItem(string, string, bool)

public ModItem(string filePath, string fileName, bool isEnabled)

Parameters

filePath string
fileName string
isEnabled bool

Properties

FileName

[ExcludeFromCodeCoverage]
public string FileName { get; set; }

Property Value

string

FilePath

Full path to the jar as it is on disk right now.

public string FilePath { get; }

Property Value

string

IsEnabled

[ExcludeFromCodeCoverage]
public bool IsEnabled { get; set; }

Property Value

bool

IsUpdating

[ExcludeFromCodeCoverage]
public bool IsUpdating { get; set; }

Property Value

bool

Update

A newer version on Modrinth, or null. Set by the update check, and handed back by the panel to the row each time the list is rebuilt.

[ExcludeFromCodeCoverage]
public ModUpdateInfo? Update { get; set; }

Property Value

ModUpdateInfo

UpdateAvailable

public bool UpdateAvailable { get; }

Property Value

bool

UpdateTooltip

public string UpdateTooltip { get; }

Property Value

string