Enum Class MappingFormat

java.lang.Object
java.lang.Enum<MappingFormat>
net.fabricmc.mappingio.format.MappingFormat
All Implemented Interfaces:
Serializable, Comparable<MappingFormat>, Constable

public enum MappingFormat extends Enum<MappingFormat>
Represents a supported mapping format. Feature comparison table:
Format Namespaces Field descriptors Comments Parameters Local variables Metadata
Tiny v1 ✔ (Currently limited support)
Tiny v2
Enigma
SRG
XSRG
CSRG/TSRG
TSRG2
ProGuard
  • Enum Constant Details

    • TINY_FILE

      public static final MappingFormat TINY_FILE
      The Tiny mapping format, as specified here.
    • TINY_2_FILE

      public static final MappingFormat TINY_2_FILE
      The Tiny v2 mapping format, as specified here.
    • ENIGMA_FILE

      public static final MappingFormat ENIGMA_FILE
      Enigma's mapping format, as specified here.
    • ENIGMA_DIR

      public static final MappingFormat ENIGMA_DIR
      Enigma's mapping format (in directory form), as specified here.
    • SRG_FILE

      public static final MappingFormat SRG_FILE
      The SRG (Searge RetroGuard) mapping format, as specified here.
    • XSRG_FILE

      public static final MappingFormat XSRG_FILE
      The XSRG (Extended SRG) mapping format, as specified here. Same as SRG, but with field descriptors..
    • CSRG_FILE

      public static final MappingFormat CSRG_FILE
      The CSRG (Compact SRG, since it saves disk space over SRG) mapping format, as specified here.
    • TSRG_FILE

      public static final MappingFormat TSRG_FILE
      The TSRG (Tiny SRG, since it saves disk space over SRG) mapping format, as specified here. Same as CSRG, but hierarchical instead of flat.
    • TSRG_2_FILE

      public static final MappingFormat TSRG_2_FILE
      The TSRG v2 mapping format, as specified here.
    • PROGUARD_FILE

      public static final MappingFormat PROGUARD_FILE
      ProGuard's mapping format, as specified here.
  • Field Details

    • name

      public final String name
    • fileExt

      @Nullable public final @Nullable String fileExt
    • hasNamespaces

      public final boolean hasNamespaces
    • hasFieldDescriptors

      public final boolean hasFieldDescriptors
    • supportsComments

      public final boolean supportsComments
    • supportsArgs

      public final boolean supportsArgs
    • supportsLocals

      public final boolean supportsLocals
  • Method Details

    • values

      public static MappingFormat[] 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 MappingFormat 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
    • hasSingleFile

      public boolean hasSingleFile()
    • getGlobPattern

      public String getGlobPattern()