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

Method compare

Minecraft-Utils/1.9/src/ClassProxy.java:253–260  ·  view source on GitHub ↗
(bgz o1, bgz o2)

Source from the content-addressed store, hash-verified

251 bgy gui = (bgy) instance;
252 Comparator<bgz> comparator = new Comparator<bgz>() {
253 @Override
254 public int compare(bgz o1, bgz o2) {
255 if (!(o1 instanceof bhb) || !(o2 instanceof bhb))
256 return 0;
257 bhb resourcePackListEntryFound1 = (bhb) o1;
258 bhb resourcePackListEntryFound2 = (bhb) o2;
259 return resourcePackListEntryFound1.l().d().toLowerCase(Locale.ROOT).compareTo(resourcePackListEntryFound2.l().d().toLowerCase(Locale.ROOT));
260 }
261 };
262 MinecraftFactory.getClassProxyCallback().addSearch(
263 new SearchEntry<bgz>(MinecraftFactory.getVars().createTextfield(MinecraftFactory.getClassProxyCallback().translate("gui.search"), 9991, gui.l / 2 - 200, gui.m - 70, 170, 16),

Callers

nothing calls this directly

Calls 4

getMethod · 0.65
compareToMethod · 0.45
dMethod · 0.45
eMethod · 0.45

Tested by

no test coverage detected