mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-15 09:44:44 +00:00
* Update build script * Update build script to import fix for shadow in dev and sources artifacts * Update fixed build script to shadow csv dependency in dev jar as well * Moved jitpack * Move new files
19 lines
379 B
Java
19 lines
379 B
Java
package codechicken.nei;
|
|
|
|
import java.util.Comparator;
|
|
|
|
public class WidgetZOrder
|
|
implements Comparator<Widget>
|
|
{
|
|
final boolean topfirst;
|
|
public WidgetZOrder(boolean topfirst)
|
|
{
|
|
this.topfirst = topfirst;
|
|
}
|
|
|
|
public int compare(Widget w1, Widget w2)
|
|
{
|
|
return w1.z != w2.z ? ((topfirst ? w1.z > w2.z : w1.z < w2.z) ? 1 : -1) : 1;
|
|
}
|
|
}
|