Enum Class ModPlatform

java.lang.Object
java.lang.Enum<ModPlatform>
net.fabricmc.loom.util.ModPlatform
All Implemented Interfaces:
Serializable, Comparable<ModPlatform>, Constable

public enum ModPlatform extends Enum<ModPlatform>
  • Enum Constant Details

  • Method Details

    • values

      public static ModPlatform[] 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 ModPlatform 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
    • id

      public String id()
      Returns the lowercase ID of this mod platform.
    • displayName

      public String displayName()
    • isExperimental

      public boolean isExperimental()
    • isForgeLike

      public boolean isForgeLike()
    • assertPlatform

      public static void assertPlatform(org.gradle.api.Project project, ModPlatform platform)
    • assertPlatform

      public static void assertPlatform(LoomGradleExtensionAPI extension, ModPlatform platform)
    • assertPlatform

      public static void assertPlatform(LoomGradleExtensionAPI extension, ModPlatform platform, Supplier<String> message)
    • assertForgeLike

      public static void assertForgeLike(LoomGradleExtensionAPI extension)
    • assertForgeLike

      public static void assertForgeLike(LoomGradleExtensionAPI extension, Supplier<String> message)