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.
    • 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:
      github.com/FabricMC/intermediary/
    • 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
    • toString

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