Class RegisterKeyMappingsEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RegisterKeyMappingsEvent
All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent

public class RegisterKeyMappingsEvent extends net.neoforged.bus.api.Event implements net.neoforged.fml.event.IModBusEvent
Allows users to register custom key mappings.

This event is not cancellable, and does not

invalid reference
have a result
.

This event is fired on the mod-specific event bus, only on the logical client.

  • Field Details Link icon

    • options Link icon

      private final Options options
  • Constructor Details Link icon

    • RegisterKeyMappingsEvent Link icon

      @Internal public RegisterKeyMappingsEvent(Options options)
  • Method Details Link icon

    • register Link icon

      public void register(KeyMapping key)
      Registers a new key mapping.