MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / compare

Method compare

src/main/java/net/optifine/CustomItems.java:217–222  ·  view source on GitHub ↗
(Object o1, Object o2)

Source from the content-addressed store, hash-verified

215 Comparator comparator = new Comparator()
216 {
217 public int compare(Object o1, Object o2)
218 {
219 CustomItemProperties customitemproperties = (CustomItemProperties)o1;
220 CustomItemProperties customitemproperties1 = (CustomItemProperties)o2;
221 return customitemproperties.layer != customitemproperties1.layer ? customitemproperties.layer - customitemproperties1.layer : (customitemproperties.weight != customitemproperties1.weight ? customitemproperties1.weight - customitemproperties.weight : (!customitemproperties.basePath.equals(customitemproperties1.basePath) ? customitemproperties.basePath.compareTo(customitemproperties1.basePath) : customitemproperties.name.compareTo(customitemproperties1.name)));
222 }
223 };
224 return comparator;
225 }

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.45
compareToMethod · 0.45

Tested by

no test coverage detected