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

Method compare

Minecraft-Utils/1.12/src/ClassProxy.java:251–258  ·  view source on GitHub ↗
(bnv o1, bnv o2)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected