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.

Featured Replies

Posted

Sorry to be a little off topic, but I was wondering about how to correctly set up my packet handling.

Is it ok to just have:

 

 

@NetworkMod(

    clientSideRequired = true,

    serverSideRequired = false,

    clientPacketHandlerSpec = @SidedPacketHandler(channels={"EntangleCraft"}, packetHandler=ClientPacketHandler.class),

    serverPacketHandlerSpec = @SidedPacketHandler(channels={"EntangleCraft"}, packetHandler=ServerPacketHandler.class),

    connectionHandler = EntangleCraft.class,

    versionBounds = "[1]"

    )

 

 

,given that both of those packetHandler classes implement IPacketHandler?

I assume something else needs to be done as my packets aren't sending :P

Do *NOT* hijack other topics.  Very rude.  Make your own.  Just split you off and moved you to the proper board (which you were not in any way, what the heck?!).

And exactly how are your sending your packet?

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author

Is support/bug reports really the place? I always thought this was for installation issues and stuff.

 

Anyhow, my server packet handler sends packets to all clients like this

MinecraftServer server = ModLoader.getMinecraftServerInstance();
server.getConfigurationManager().sendPacketToAllPlayers(packet);

Feel like I'm gonna get raged at for using something from ModLoader, especially since I use it again for sending from client to server:

ModLoader.sendPacket(packet);

 

Just to clarify, the title of this thread isn't my problem; I just want to know how to set up packets correctly. This was Kinniken's thread title, sorry about the hi-jack.

Are you specifying the correct channel in your packet?

Kinda need to see the full construction and how things are set.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.