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
Properties
FileName
[ExcludeFromCodeCoverage]
public string FileName { get; set; }
Property Value
FilePath
Full path to the jar as it is on disk right now.
public string FilePath { get; }
Property Value
IsEnabled
[ExcludeFromCodeCoverage]
public bool IsEnabled { get; set; }
Property Value
IsUpdating
[ExcludeFromCodeCoverage]
public bool IsUpdating { get; set; }
Property Value
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
UpdateAvailable
public bool UpdateAvailable { get; }
Property Value
UpdateTooltip
public string UpdateTooltip { get; }