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

Method compare

Minecraft-Utils/1.8.9/src/ClassProxy.java:244–251  ·  view source on GitHub ↗
(Object o1, Object o2)

Source from the content-addressed store, hash-verified

242 azo gui = (azo) instance;
243 Comparator comparator = new Comparator() {
244 @Override
245 public int compare(Object o1, Object o2) {
246 if (!(o1 instanceof azr) || !(o2 instanceof azr))
247 return 0;
248 azr resourcePackListEntryFound1 = (azr) o1;
249 azr resourcePackListEntryFound2 = (azr) o2;
250 return resourcePackListEntryFound1.j().d().toLowerCase(Locale.ROOT).compareTo(resourcePackListEntryFound2.j().d().toLowerCase(Locale.ROOT));
251 }
252 };
253 MinecraftFactory.getClassProxyCallback().addSearch(
254 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