Just let your Packet Handler implement the Interface IPacketHandler, and leave the Functions empty, if you dont need them.
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
For that I haven't it there. The lie of code i declare it is:
public class PacketHandler implements IPacketHandler {
}
-
Uhhm, you have eclipse right? Click on the underlined Part and select "add unimplemented Methods", to make a bunch of Dummy Functions.
-
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? In moment I do it Eclipse tell me then NULL.class is not known for eclipse, but, there is error throug that -_-