MCPcopy Create free account
hub / github.com/FabricMC/Matcher / getNamespaceName

Method getNamespaceName

src/main/java/matcher/mapping/Mappings.java:740–764  ·  view source on GitHub ↗
(NameType type)

Source from the content-addressed store, hash-verified

738 }
739
740 private static String getNamespaceName(NameType type) {
741 switch (type) {
742 case MAPPED:
743 case MAPPED_PLAIN:
744 return "named";
745 case PLAIN:
746 return "official";
747 case LOCTMP_PLAIN:
748 case TMP_PLAIN:
749 return "tmp";
750 case UID_PLAIN:
751 return "intermediary";
752 case MAPPED_LOCTMP_PLAIN:
753 case MAPPED_TMP_PLAIN:
754 return "named-tmp";
755 case AUX:
756 case AUX2:
757 case AUX_PLAIN:
758 case AUX2_PLAIN:
759 return type.getAuxIndex() > 0 ? String.format("aux%d", type.getAuxIndex()) : "aux";
760 case MAPPED_AUX_PLAIN:
761 return "named-aux";
762 default: throw new IllegalArgumentException();
763 }
764 }
765
766 private static boolean shouldExport(MethodInstance method, MappingFormat format, List<NameType> nsTypes,
767 MappingsExportVerbosity verbosity, boolean forAnyInput, Set<Set<MethodInstance>> exportedHierarchies) {

Callers 1

saveMethod · 0.95

Calls 2

getAuxIndexMethod · 0.80
formatMethod · 0.80

Tested by

no test coverage detected