Class GithubMod
java.lang.Object
wtf.ranked.hytale.server.runner.mod.Mod
wtf.ranked.hytale.server.runner.mod.type.UrlMod
wtf.ranked.hytale.server.runner.mod.type.GithubMod
- All Implemented Interfaces:
Serializable
A specialized mod implementation for files hosted on GitHub Releases.
This class acts as a template that automatically constructs a direct download URL based on the repository owner, name, release tag, and asset name.
- See Also:
-
Field Summary
-
Method Summary
Methods inherited from class wtf.ranked.hytale.server.runner.mod.Mod
normalizeFileName
-
Method Details
-
of
public static @NonNull GithubMod of(@NonNull String owner, @NonNull String repository, @NonNull String tag, @NonNull String assetName) Static factory to build a GithubMod from repository coordinates.- Parameters:
owner- the GitHub user or organizationrepository- the name of the repositorytag- the release tag (e.g., "v1.0.0")assetName- the specific file name attached to the release- Returns:
- a new GithubMod with a formatted download URI
-