Class RegisterKeyMappingsEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RegisterKeyMappingsEvent
- All Implemented Interfaces:
IModBusEvent
Allows users to register custom
key mappings and key mapping categories.
This event is not cancellable.
This event is fired on the mod-specific event bus, only on the logical client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Identifier, KeyMapping.Category> private final Options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregister(KeyMapping key) Register a new key mapping.voidregisterCategory(KeyMapping.Category category) Register a new key mapping category.voidsortAndStoreCategories(List<KeyMapping.Category> categories)
-
Field Details
-
options
-
moddedCategories
-
-
Constructor Details
-
RegisterKeyMappingsEvent
-
-
Method Details
-
register
Register a new key mapping. -
registerCategory
Register a new key mapping category. -
sortAndStoreCategories
-