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.

de7

Members
  • Joined

  • Last visited

  1. Oh, right... Added public Message() {} to the Message.class and that's all. Thank you!
  2. Hello. I'm trying to use SimpleNetworkWrapper, according to this and some other manuals. On my client side i have: public void preInit(FMLPreInitializationEvent e) { network = NetworkRegistry.INSTANCE.newSimpleChannel("test"); network.registerMessage(Message.FromServerHandler.class, Message.class, 0, Side.CLIENT); } On my server side i have: public void preInit(FMLPreInitializationEvent e) { network = NetworkRegistry.INSTANCE.newSimpleChannel("test"); network.registerMessage(Message.FromClientHandler.class, Message.class, 0, Side.SERVER); } Message.class: So, i'm trying to send the message to the client right after login, like that: public void onEvent(PlayerLoggedInEvent event) { System.out.println("[test] " + event.player.getDisplayName() + " connected"); System.out.println("[test] sending 'test' to " + event.player.getDisplayName()); ServerProxy.network.sendTo(new Message("test"), (EntityPlayerMP) event.player); } But on the client i'm getting this: [01:05:00] [Client thread/ERROR] [FML]: FMLIndexedMessageCodec exception caught io.netty.handler.codec.DecoderException: java.lang.InstantiationException: info.deseven.test.event.Message Can anyone help?

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.