Class Mod

java.lang.Object
wtf.ranked.hytale.server.runner.mod.Mod
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UrlMod

public abstract class Mod extends Object implements Serializable
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 Details

    • fileName

      protected final String fileName
      The target name for the mod file on the local disk.
  • Constructor Details

    • Mod

      public Mod()
  • Method Details

    • normalizeFileName

      protected static @NonNull String normalizeFileName(@NonNull String fileName)
      Ensures the provided file name has a consistent .jar extension.
      Parameters:
      fileName - the raw file name string
      Returns:
      the normalized file name ending in ".jar"