Jump to content

[1.7.2] Plugin Channel Message - How to?


DerFlash

Recommended Posts

Back in the days I've used Modloaders simple mechanism like this:

 

    ModLoader.registerPacketChannel(this, "XXX");

 

    public void clientCustomPayload(NetClientHandler clientHandler, Packet250CustomPayload packet250custompayload) {

        if (packet250custompayload.channel.equalsIgnoreCase("XXX")) {

            handleMCMessage(new String(packet250custompayload.data));

        }

    }

 

I've also seen people using @NetworkMod in their plugins which I've found in the FML 1.6 code and seems to be removed in FML @ 1.7.x.

 

So how do I read/decode the message of this plugin channel in the recent beta version? Any idea?

 

 

PS: The formatting buttons in this editor don't seem to work on Safari/Mac. Hope the basic code formatting above is ok.

 

Thanks in advance

DerFlash

Link to comment
Share on other sites

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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