Kryonet packet identifying

I’m looking into obfuscating the client. That means obfuscating kryonet packets aswell. This means I’ll have to implement KryoSerializable.
Now there’s one problem left, which is how to know which packets are which. I know you can assign id’s to packets. But I’m not sure if that can work when a packet is named a.class in the client and LoginRequest.class in the server. Are there work arounds? I haven’t tested it yet because I haven’t found any time to do yet.

What I want:
client -> packetID+packet.write();
server -> which packet should be known using;