Enum Class UiPlatform

java.lang.Object
java.lang.Enum<UiPlatform>
dev.xichil.mvui.UiPlatform
All Implemented Interfaces:
Serializable, Comparable<UiPlatform>, Constable

public enum UiPlatform extends Enum<UiPlatform>
The mod loader a backend serves (TODO.md 0.6). Ids match the keys of the backend descriptors written by buildSrc's UiPlatform (BackendDescriptor.parse(Properties)). Quilt runs the Fabric backends. Part of the backend contract; mods don't need it.
  • Enum Constant Details

    • FABRIC

      public static final UiPlatform FABRIC
      Fabric and Quilt, 1.14+.
    • LEGACY_FABRIC

      public static final UiPlatform LEGACY_FABRIC
      Legacy Fabric, 1.7.10 – 1.13.2.
    • FORGE

      public static final UiPlatform FORGE
      Minecraft Forge, every supported version.
    • NEOFORGE

      public static final UiPlatform NEOFORGE
      NeoForge, 1.20.1+.
  • Method Details

    • values

      public static UiPlatform[] 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 UiPlatform 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()
      The platform's key in a backend descriptor file, e.g. legacyfabric.
      Returns:
      the platform id