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(java.lang.Class<?> recipe) |
static RecipeSorter.Category |
getCategory(IRecipe recipe) |
static void |
register(java.lang.String name,
java.lang.Class<?> recipe,
RecipeSorter.Category category,
java.lang.String dependencies) |
static void |
setCategory(java.lang.Class<?> recipe,
RecipeSorter.Category category) |
static void |
sortCraftManager() |
public static final RecipeSorter INSTANCE
public int compare(IRecipe r1, IRecipe r2)
compare
in interface java.util.Comparator<IRecipe>
public static void sortCraftManager()
public static void register(java.lang.String name, java.lang.Class<?> recipe, RecipeSorter.Category category, java.lang.String dependencies)
public static void setCategory(java.lang.Class<?> recipe, RecipeSorter.Category category)
public static RecipeSorter.Category getCategory(IRecipe recipe)
public static RecipeSorter.Category getCategory(java.lang.Class<?> recipe)