Class GithubMod

All Implemented Interfaces:
Serializable

public final class GithubMod extends UrlMod
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:
  • 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 organization
      repository - the name of the repository
      tag - 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