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

Method compare

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

Source from the content-addressed store, hash-verified

249 bhq gui = (bhq) instance;
250 Comparator<bhr> comparator = new Comparator<bhr>() {
251 @Override
252 public int compare(bhr o1, bhr o2) {
253 if (!(o1 instanceof bht) || !(o2 instanceof bht))
254 return 0;
255 bht resourcePackListEntryFound1 = (bht) o1;
256 bht resourcePackListEntryFound2 = (bht) 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<bhr>(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