Enum Class LoaderType

java.lang.Object
java.lang.Enum<LoaderType>
io.github.smootheez.LoaderType
All Implemented Interfaces:
Serializable, Comparable<LoaderType>, Constable

public enum LoaderType extends Enum<LoaderType>
Represents the supported mod loader ecosystems used when determining compatibility for publication on platforms such as Modrinth or CurseForge.

Each value is annotated with SerializedName to ensure correct JSON mapping when communicating with external APIs.

  • Enum Constant Details

    • FABRIC

      @SerializedName("fabric") public static final LoaderType FABRIC
      Indicates compatibility with the Fabric mod loader. Serialized as "fabric".
    • QUILT

      @SerializedName("quilt") public static final LoaderType QUILT
      Indicates compatibility with the Quilt mod loader. Serialized as "quilt".
    • FORGE

      @SerializedName("forge") public static final LoaderType FORGE
      Indicates compatibility with the Forge mod loader. Serialized as "forge".
    • NEOFORGE

      @SerializedName("neoforge") public static final LoaderType NEOFORGE
      Indicates compatibility with the NeoForge mod loader. Serialized as "neoforge".
  • Method Details

    • values

      public static LoaderType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LoaderType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null