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

Method getName

src/main/java/matcher/gui/tab/ClassInfoTab.java:170–179  ·  view source on GitHub ↗
(Matchable<?> m, NameType nameType)

Source from the content-addressed store, hash-verified

168 }
169
170 static String getName(Matchable<?> m, NameType nameType) {
171 String ret = m.getDisplayName(nameType.withMapped(false), true);
172 String mapped = m.getDisplayName(nameType.withMapped(true), true);
173
174 if (Objects.equals(ret, mapped)) {
175 return ret;
176 } else {
177 return ret+" - "+mapped;
178 }
179 }
180
181 static String getInputPaths(ClassInstance cls, Predicate<ClassNode> filter) {
182 StringBuilder ret = new StringBuilder();

Callers 2

updateMethod · 0.95
formatMethod · 0.95

Calls 3

withMappedMethod · 0.80
getDisplayNameMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected