public class RecipeSorter extends Object implements Comparator<IRecipe>
Modifier and Type | Class and Description |
---|---|
static class |
RecipeSorter.Category |
Modifier and Type | Field and Description |
---|---|
static RecipeSorter |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
int |
compare(IRecipe r1,
IRecipe r2) |
static RecipeSorter.Category |
getCategory(Class recipe) |
static RecipeSorter.Category |
getCategory(IRecipe recipe) |
static void |
register(String name,
Class recipe,
RecipeSorter.Category category,
String dependancies) |
static void |
setCategory(Class recipe,
RecipeSorter.Category category) |
static void |
sortCraftManager() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public static RecipeSorter INSTANCE
public int compare(IRecipe r1, IRecipe r2)
compare
in interface Comparator<IRecipe>
public static void sortCraftManager()
public static void register(String name, Class recipe, RecipeSorter.Category category, String dependancies)
public static void setCategory(Class recipe, RecipeSorter.Category category)
public static RecipeSorter.Category getCategory(IRecipe recipe)
public static RecipeSorter.Category getCategory(Class recipe)