Enum Class ModLoader

java.lang.Object
java.lang.Enum<ModLoader>
dev.ftb.plugins.ashwing.utils.ModLoader
All Implemented Interfaces:
Serializable, Comparable<ModLoader>, Constable

public enum ModLoader extends Enum<ModLoader>
Local list of supported modloaders.
  • Enum Constant Details

    • NEOFORGE

      public static final ModLoader NEOFORGE
    • FORGE

      public static final ModLoader FORGE
    • FABRIC

      public static final ModLoader FABRIC
  • Method Details

    • values

      public static ModLoader[] 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 ModLoader 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
    • prettyName

      public String prettyName()
    • stringIsLoader

      public static boolean stringIsLoader(String str)
      Check if the given string contains any known mod loader names (case-insensitive).
    • isForgeFamily

      public static boolean isForgeFamily(ModLoader loader)
      Checks if a given mod loader is part of the Forge family (Forge or NeoForge).