MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / compare

Method compare

Minecraft-Utils/1.8.8/src/ClassProxy.java:246–253  ·  view source on GitHub ↗
(azp o1, azp o2)

Source from the content-addressed store, hash-verified

244 azo gui = (azo) instance;
245 Comparator<azp> comparator = new Comparator<azp>() {
246 @Override
247 public int compare(azp o1, azp o2) {
248 if (!(o1 instanceof azr) || !(o2 instanceof azr))
249 return 0;
250 azr resourcePackListEntryFound1 = (azr) o1;
251 azr resourcePackListEntryFound2 = (azr) o2;
252 return resourcePackListEntryFound1.j().d().toLowerCase(Locale.ROOT).compareTo(resourcePackListEntryFound2.j().d().toLowerCase(Locale.ROOT));
253 }
254 };
255 MinecraftFactory.getClassProxyCallback().addSearch(
256 new SearchEntry<azp>(MinecraftFactory.getVars().createTextfield(MinecraftFactory.getClassProxyCallback().translate("gui.search"), 9991, gui.l / 2 - 200, gui.m - 70, 170, 16),

Callers

nothing calls this directly

Calls 3

compareToMethod · 0.45
dMethod · 0.45
eMethod · 0.45

Tested by

no test coverage detected