Class StoreItem
- Namespace
- McServerLauncher.Models.Store
- Assembly
- McServerLauncher.dll
What the store knows about one thing it can offer, independently of where it came from.
Today everything is a Modrinth mod or plugin, and the two Modrinth shapes (a search hit and a full project) carry the same facts under slightly different names. Tagging and summarising work on this type instead of on either of them, so a shader, a resource pack or a modpack — or a second source altogether — only needs its own conversion, not its own classifier.
public class StoreItem
- Inheritance
-
StoreItem
- Inherited Members
Properties
Author
Author name when the source knows it. Search results carry it; the project endpoint doesn't (it returns a team id instead), so an empty value means "look it up", not "no author".
public string Author { get; init; }
Property Value
Categories
Raw category slugs, loaders included (that is how Modrinth stores them).
public IReadOnlyList<string> Categories { get; init; }
Property Value
ClientSide
"required", "optional", "unsupported" or "unknown" — null when unknown.
public string? ClientSide { get; init; }
Property Value
Description
The author's own one-line summary.
public string Description { get; init; }
Property Value
Downloads
public long Downloads { get; init; }
Property Value
Followers
public int Followers { get; init; }
Property Value
IconUrl
public string? IconUrl { get; init; }
Property Value
Id
public string Id { get; init; }
Property Value
NeedsClient
True when players must install it too, not only the server.
public bool NeedsClient { get; }
Property Value
ProjectType
"mod", "plugin"… Empty when the source didn't say.
public string ProjectType { get; init; }
Property Value
ServerSide
"required", "optional", "unsupported" or "unknown" — null when unknown.
public string? ServerSide { get; init; }
Property Value
Slug
public string Slug { get; init; }
Property Value
Title
public string Title { get; init; }
Property Value
Updated
public DateTimeOffset? Updated { get; init; }
Property Value
Methods
From(ProjectDetail)
public static StoreItem From(ProjectDetail project)
Parameters
projectProjectDetail
Returns
From(ProjectResult)
public static StoreItem From(ProjectResult hit)
Parameters
hitProjectResult