Enum Class MappingsNamespace
- All Implemented Interfaces:
Serializable,Comparable<MappingsNamespace>,Constable
The standard namespaces used by loom.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOfficial names for the Minecraft client jar, usually obfuscated.Intermediary mappings have been generated to provide a stable set of names across minecraft versions.Mojang's official names from their deobfuscation maps.Named mappings are the developer friendly names used to develop mods against.Official mappings are the names that are used in the vanilla Minecraft game jars, these are usually obfuscated.Official names for the Minecraft server jar, usually obfuscated.SRG mappings provided by Minecraft Forge. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable MappingsNamespaceGets aMappingsNamespacefrom a namespace string.toString()static MappingsNamespaceReturns the enum constant of this class with the specified name.static MappingsNamespace[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OFFICIAL
Official mappings are the names that are used in the vanilla Minecraft game jars, these are usually obfuscated. -
CLIENT_OFFICIAL
Official names for the Minecraft client jar, usually obfuscated. This namespace is used for versions <1.3, where the client and server jars are obfuscated differently. -
SERVER_OFFICIAL
Official names for the Minecraft server jar, usually obfuscated. This namespace is used for versions <1.3, where the client and server jars are obfuscated differently. -
INTERMEDIARY
Intermediary mappings have been generated to provide a stable set of names across minecraft versions.Intermediary is used in a production runtime (outside a dev env) allowing mods to run across multiple versions of the game. Mods are remapped from "named" at build time.
- See Also:
-
SRG
SRG mappings provided by Minecraft Forge.They are used as the mapping set in a Forge production environment akin to Fabric's intermediary mappings.
-
MOJANG
Mojang's official names from their deobfuscation maps.They are used as the mapping set in a NeoForge production environment akin to Fabric's intermediary mappings.
-
NAMED
Named mappings are the developer friendly names used to develop mods against.
-
-
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
-
of
Gets aMappingsNamespacefrom a namespace string.- Parameters:
namespace- the name of the namespace as a lowercase string- Returns:
- the
MappingsNamespace, or null if not found
-
toString
- Overrides:
toStringin classEnum<MappingsNamespace>
-