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