Class UrlMod
java.lang.Object
wtf.ranked.hytale.server.runner.mod.Mod
wtf.ranked.hytale.server.runner.mod.type.UrlMod
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GithubMod
A mod implementation defined by a direct web URL.
This type is used for mods hosted on static file servers or CDNs
where a direct link to the .jar file is available.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class wtf.ranked.hytale.server.runner.mod.Mod
normalizeFileName
-
Constructor Details
-
UrlMod
Internal constructor for creating a URL-based mod.- Parameters:
fileName- normalized name of the file to saveuri- source location
-
-
Method Details
-
of
Static factory to create a mod from a URL string.- Parameters:
url- the raw string URLfileName- the desired local file name- Returns:
- a new UrlMod instance
-
of
Static factory to create a mod from aURI.- Parameters:
uri- the source URIfileName- the desired local file name- Returns:
- a new UrlMod instance
-