Skip to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[1.8][SOLVED] Where do I register my keybind handler

Featured Replies

I guess you are looking for this

ClientRegistry.registerKeyBinding(key);

Greetz Fail

No, I have that. I am looking for how to register my key handler class with FML. Or Forge, if that is where it is handled now.

 

Uhh, he just told you how.

  • Author

I mean the @SubscribeEvent for KeyInputEvent. I apologise for the mix up, and I am currently unable to provide code, as I am on my phone and will not be able to connect my laptop to the internet until Sunday.

If I helped please press the Thank You button.

 

Check out my mods at http://www.curse.com/users/The_Fireplace/projects

You do it like any other registration:

FMLCommonHandler.instance().bus().register(new KeyHandler());

 

You just put the code in client proxy.

 

Also note to deadrecon98: No he didn't tell him.

1.7.10 is no longer supported by forge, you are on your own.

Guest
This topic is now closed to further replies.

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.