Package net.fabricmc.mappingio.format
Enum Class MappingFormat
- All Implemented Interfaces:
Serializable,Comparable<MappingFormat>,Constable
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 | ✖ | ✔ | ✖ | ✖ | ✖ | ✖ |
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEnigma's mapping format (in directory form), as specified here.Enigma's mapping format, as specified here.ProGuard's mapping format, as specified here.TheTiny v2mapping format, as specified here.TheTinymapping format, as specified here.TheTSRG v2mapping format, as specified here. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic MappingFormatReturns the enum constant of this class with the specified name.static MappingFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TINY_FILE
TheTinymapping format, as specified here. -
TINY_2_FILE
TheTiny v2mapping format, as specified here. -
ENIGMA_FILE
Enigma's mapping format, as specified here. -
ENIGMA_DIR
Enigma's mapping format (in directory form), as specified here. -
SRG_FILE
-
XSRG_FILE
TheXSRG(Extended SRG) mapping format, as specified here. Same as SRG, but with field descriptors.. -
CSRG_FILE
-
TSRG_FILE
TheTSRG(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
TheTSRG v2mapping format, as specified here. -
PROGUARD_FILE
ProGuard's mapping format, as specified here.
-
-
Field Details
-
name
-
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
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
-
hasSingleFile
public boolean hasSingleFile() -
getGlobPattern
-