Network Problem

  • Just let your Packet Handler implement the Interface IPacketHandler, and leave the Functions empty, if you dont need them.

    Well, I got it there, but, still error.


    But, what more, errors by Eclipse go even to MCP. To both files: NetworkMod.java and IPacketHandler.java...


    So, maybe something wrong with MCP...?


    EDIT:


    Well, I remove it, jsut because I HOPE then I don't need it later :D


    For that I haven't it there. The lie of code i declare it is:


    public class PacketHandler implements IPacketHandler {



    }

    public void getForumUserData(Signature signature, User user) { if(user.equalsTo("Cass") && user.isOnline() { Forum.Out.println("signature")})return;}

    Edited once, last by CastielAngelow ().

  • Uhhm, you have eclipse right? Click on the underlined Part and select "add unimplemented Methods", to make a bunch of Dummy Functions.

    Well, that was first I try to do. Add unimplemented methods. Also try CTRL+SHIFT+O(import).
    Also try to write it in shape which MCP tell me I should do.
    I dont know what's wrong. In that part it importing this method:


    /**
    * A packet handler implementation for channels registered through this annotation
    * - this packet handler will be universal and handle both client and server
    * requests.
    */
    Class<PacketHandler> packetHandler() default NULL.class;


    But, what happen? :D In moment I do it Eclipse tell me then NULL.class is not known for eclipse, but, there is error throug that -_-

    public void getForumUserData(Signature signature, User user) { if(user.equalsTo("Cass") && user.isOnline() { Forum.Out.println("signature")})return;}