Package net.neoforged.neoforge.client
Class RecipeBookManager
java.lang.Object
net.neoforged.neoforge.client.RecipeBookManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<RecipeBookCategories,
List<RecipeBookCategories>> private static final Map<RecipeBookCategories,
List<RecipeBookCategories>> private static final Map<RecipeType<?>,
Function<RecipeHolder<?>, RecipeBookCategories>> private static final Map<RecipeBookType,
List<RecipeBookCategories>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Recipe<?>>
@Nullable RecipeBookCategoriesfindCategories
(RecipeType<T> type, RecipeHolder<T> recipe) Finds the category the specified recipe should display in, or null if none.static Map<RecipeBookCategories,
List<RecipeBookCategories>> static List<RecipeBookCategories>
getCustomCategoriesOrEmpty
(RecipeBookType recipeBookType) static void
init()
-
Field Details
-
AGGREGATE_CATEGORIES
-
TYPE_CATEGORIES
-
RECIPE_CATEGORY_LOOKUPS
private static final Map<RecipeType<?>,Function<RecipeHolder<?>, RECIPE_CATEGORY_LOOKUPSRecipeBookCategories>> -
AGGREGATE_CATEGORIES_VIEW
-
-
Constructor Details
-
RecipeBookManager
public RecipeBookManager()
-
-
Method Details
-
findCategories
@Nullable public static <T extends Recipe<?>> @Nullable RecipeBookCategories findCategories(RecipeType<T> type, RecipeHolder<T> recipe) Finds the category the specified recipe should display in, or null if none. -
getAggregateCategories
@Internal public static Map<RecipeBookCategories,List<RecipeBookCategories>> getAggregateCategories() -
getCustomCategoriesOrEmpty
@Internal public static List<RecipeBookCategories> getCustomCategoriesOrEmpty(RecipeBookType recipeBookType) -
init
@Internal public static void init()
-