Enum Class UiPlatform
- All Implemented Interfaces:
Serializable, Comparable<UiPlatform>, Constable
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.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFabric and Quilt, 1.14+.Minecraft Forge, every supported version.Legacy Fabric, 1.7.10 – 1.13.2.NeoForge, 1.20.1+. -
Method Summary
Modifier and TypeMethodDescriptionid()The platform's key in a backend descriptor file, e.g.static UiPlatformReturns the enum constant of this class with the specified name.static UiPlatform[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FABRIC
Fabric and Quilt, 1.14+. -
LEGACY_FABRIC
Legacy Fabric, 1.7.10 – 1.13.2. -
FORGE
Minecraft Forge, every supported version. -
NEOFORGE
NeoForge, 1.20.1+.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
id
The platform's key in a backend descriptor file, e.g.legacyfabric.- Returns:
- the platform id
-