Jump to content

DerFlash

Members
  • Posts

    2
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

DerFlash's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. 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
  2. Works fine here (no sure if it may be easier), although I needed to dig long to find out how (due to no actual documentation about anything on 1.7 - or I'm just to stupid to find it ): @EventHandler public void init(FMLInitializationEvent event) { FMLCommonHandler.instance().bus().register(this); } @SubscribeEvent public void tick(ClientTickEvent event) { ... }
×
×
  • Create New...

Important Information

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