Class RegisterRecipeBookSearchCategoriesEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RegisterRecipeBookSearchCategoriesEvent
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
public class RegisterRecipeBookSearchCategoriesEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.fml.event.IModBusEvent
Event to register
ExtendedRecipeBookCategory
instances for search.
Modded equivalent of vanilla's SearchRecipeBookCategory
.
This event is fired on the mod-specific event bus, only on the logical client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<ExtendedRecipeBookCategory, List<RecipeBookCategory>> -
Constructor Summary
ConstructorsConstructorDescriptionRegisterRecipeBookSearchCategoriesEvent
(Map<ExtendedRecipeBookCategory, List<RecipeBookCategory>> categories) -
Method Summary
Modifier and TypeMethodDescriptionvoid
register
(ExtendedRecipeBookCategory searchCategory, RecipeBookCategory... includedCategories)
-
Field Details
-
categories
-
-
Constructor Details
-
RegisterRecipeBookSearchCategoriesEvent
@Internal public RegisterRecipeBookSearchCategoriesEvent(Map<ExtendedRecipeBookCategory, List<RecipeBookCategory>> categories)
-
-
Method Details
-
register
public void register(ExtendedRecipeBookCategory searchCategory, RecipeBookCategory... includedCategories)
-