public final class IngredientSorter extends java.lang.Object implements IIngredientSorter
| Constructor and Description |
|---|
IngredientSorter(IClientConfig clientConfig,
ModNameSortingConfig modNameSortingConfig,
IngredientTypeSortingConfig ingredientTypeSortingConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
doPreSort(IngredientFilter ingredientFilter,
IIngredientManager ingredientManager) |
java.util.Comparator<IIngredientListElementInfo<?>> |
getComparator(IngredientFilter ingredientFilter,
IIngredientManager ingredientManager) |
static <V> net.minecraft.item.ItemStack |
getItemStack(IIngredientListElementInfo<V> ingredientInfo) |
void |
invalidateCache() |
public IngredientSorter(IClientConfig clientConfig, ModNameSortingConfig modNameSortingConfig, IngredientTypeSortingConfig ingredientTypeSortingConfig)
public void doPreSort(IngredientFilter ingredientFilter, IIngredientManager ingredientManager)
doPreSort in interface IIngredientSorterpublic java.util.Comparator<IIngredientListElementInfo<?>> getComparator(IngredientFilter ingredientFilter, IIngredientManager ingredientManager)
getComparator in interface IIngredientSorterpublic void invalidateCache()
invalidateCache in interface IIngredientSorterpublic static <V> net.minecraft.item.ItemStack getItemStack(IIngredientListElementInfo<V> ingredientInfo)