Enum Class MappingsNamespace

java.lang.Object
java.lang.Enum<MappingsNamespace>
net.fabricmc.loom.api.mappings.layered.MappingsNamespace
All Implemented Interfaces:
Serializable, Comparable<MappingsNamespace>, Constable

public enum MappingsNamespace extends Enum<MappingsNamespace>
The standard namespaces used by loom.
  • Enum Constant Details

    • OFFICIAL

      public static final MappingsNamespace OFFICIAL
      Official mappings are the names that are used in the vanilla Minecraft game jars, these are usually obfuscated.
    • CLIENT_OFFICIAL

      public static final MappingsNamespace 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

      public static final MappingsNamespace 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

      public static final MappingsNamespace 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

      public static final MappingsNamespace 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

      public static final MappingsNamespace 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

      public static final MappingsNamespace NAMED
      Named mappings are the developer friendly names used to develop mods against.
  • Method Details

    • values

      public static MappingsNamespace[] 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 MappingsNamespace 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
    • of

      public static @Nullable MappingsNamespace of(String namespace)
      Gets a MappingsNamespace from a namespace string.
      Parameters:
      namespace - the name of the namespace as a lowercase string
      Returns:
      the MappingsNamespace, or null if not found
    • toString

      public String toString()
      Overrides:
      toString in class Enum<MappingsNamespace>