Class Mod
java.lang.Object
wtf.ranked.hytale.server.runner.mod.Mod
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UrlMod
Abstract base for all mod definitions.
This class serves as a blueprint for mod metadata. It is Serializable
to allow Gradle to cache and transport mod definitions between different
worker processes or build phases.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static @NonNull StringnormalizeFileName(@NonNull String fileName) Ensures the provided file name has a consistent.jarextension.
-
Field Details
-
fileName
The target name for the mod file on the local disk.
-
-
Constructor Details
-
Mod
public Mod()
-
-
Method Details
-
normalizeFileName
Ensures the provided file name has a consistent.jarextension.- Parameters:
fileName- the raw file name string- Returns:
- the normalized file name ending in ".jar"
-