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.

sander_blaadjes

Members
  • Joined

  • Last visited

Everything posted by sander_blaadjes

  1. How can I have my Mod make the client join a multiplayer server? I have found the following code online (ref) NetworkManager manager = NetworkManager.provideLanClient(InetAddress.getByName(info.ip), info.port); manager.setNetHandler(new AJLoginHandler(manager, mc, new GuiMainMenu())); manager.scheduleOutboundPacket(new C00Handshake(AutoJoin.PROTOCOL_VER, info.ip, info.port, EnumConnectionState.LOGIN)); manager.scheduleOutboundPacket(new C00PacketLoginStart(mc.getSession().func_148256_e())); However I feel like surely there must be an easier way, this code is also very outdated (Forge 1.7). Besides that, I also wonder if there is an easy way to check which multiplayer server a client is connected to. Any help in the right direction is appreciated!
  2. Hello, how would I be able to register a 'PlayerAttackPlayer' event? I've been searching for a while, but I can't seem to find a way to do this.

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.