sort terminal by bogosorter sort rules (#138)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package appeng.integration.modules.bogosorter;
|
||||
|
||||
import appeng.api.storage.data.IAEItemStack;
|
||||
import com.cleanroommc.bogosorter.common.sort.SortHandler;
|
||||
import net.minecraftforge.fml.common.Loader;
|
||||
|
||||
import java.util.Comparator;
|
||||
|
||||
public class InventoryBogoSortModule
|
||||
{
|
||||
private static final boolean loaded = Loader.isModLoaded("bogosorter");
|
||||
|
||||
public static final Comparator<IAEItemStack> COMPARATOR = (o1, o2) -> SortHandler.ITEM_COMPARATOR.compare(o1.getDefinition(), o2.getDefinition());
|
||||
|
||||
public static boolean isLoaded() {
|
||||
|
||||
return loaded;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user