Class ModExtension
java.lang.Object
wtf.ranked.hytale.server.runner.mod.ModExtension
Configuration extension for managing Hytale mods.
Provides a DSL for users to define mod dependencies from various
sources like direct URLs or GitHub releases. These definitions are
collected into a list and processed by the DownloadModStep.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract @NonNull org.gradle.api.provider.ListProperty<Mod> getMods()Retrieves the list of all configured mods.final voidgithub(@NonNull String owner, @NonNull String repository, @NonNull String tag, @NonNull String assetName) Adds a mod to the configuration from a GitHub Release asset.final voidAdds a mod to the configuration via a direct download link.
-
Constructor Details
-
ModExtension
public ModExtension()
-
-
Method Details
-
getMods
-
url
-
github
public final void github(@NonNull String owner, @NonNull String repository, @NonNull String tag, @NonNull String assetName) Adds a mod to the configuration from a GitHub Release asset.- Parameters:
owner- the GitHub user or organizationrepository- the name of the repositorytag- the specific release tag (e.g., "v1.0.0")assetName- the name of the file attached to the release
-