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 IIngredientSorter
public java.util.Comparator<IIngredientListElementInfo<?>> getComparator(IngredientFilter ingredientFilter, IIngredientManager ingredientManager)
getComparator
in interface IIngredientSorter
public void invalidateCache()
invalidateCache
in interface IIngredientSorter
public static <V> net.minecraft.item.ItemStack getItemStack(IIngredientListElementInfo<V> ingredientInfo)