Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface packethandler {
- int[] handledids();
- void handle();
- }
- packethandler[] handlers = new packethandler[255];
- loadpackets() {
- for(packethandler p : howeverthefuckyouaregettingpacketsuatomatically) {
- for(int i : p.handledids()) {
- handlers[i] = p;
- }
- }
- }
Add Comment
Please, Sign In to add comment