Jump 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.

e2rifia

Members
  • Joined

  • Last visited

Everything posted by e2rifia

  1. Is it @Forge.EventBusSubscriber() or @Forge.SubscribeEvent?
  2. I have problems using RegisterCommandsEvent. Below is inside a EventBusSubscriber. @SubscribeEvent public static void onRegisterCommands(final RegisterCommandsEvent event) { HelloWorldCommand.register(event.getDispatcher()); } This gives me this error. Failure message: Chants (chants) has failed to load correctly java.lang.IllegalArgumentException: Method public static void com.name.chants.ModEventSubscriber.onServerStarting(net.minecraftforge.event.RegisterCommandsEvent) has @SubscribeEvent annotation, but takes an argument that is not a subtype of the base type interface net.minecraftforge.fml.event.lifecycle.IModBusEvent: class net.minecraftforge.event.RegisterCommandsEvent I heard that FMLServerStartingEvent was replaced with RegisterCommandsEvent for custom commands, but I couldn't find an example anywhere. Can I have a couple of examples of command registration using RegisterCommandsEvent?

Important Information

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

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.