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

Method compare

Minecraft-Utils/1.8/src/ClassProxy.java:247–254  ·  view source on GitHub ↗
(bzy o1, bzy o2)

Source from the content-addressed store, hash-verified

245 bzx gui = (bzx) instance;
246 Comparator<bzy> comparator = new Comparator<bzy>() {
247 @Override
248 public int compare(bzy o1, bzy o2) {
249 if (!(o1 instanceof caa) || !(o2 instanceof caa))
250 return 0;
251 caa resourcePackListEntryFound1 = (caa) o1;
252 caa resourcePackListEntryFound2 = (caa) o2;
253 return resourcePackListEntryFound1.i().d().toLowerCase(Locale.ROOT).compareTo(resourcePackListEntryFound2.i().d().toLowerCase(Locale.ROOT));
254 }
255 };
256 MinecraftFactory.getClassProxyCallback().addSearch(
257 new SearchEntry<bzy>(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