GeyserMC / PacketLib

A library for packet-based networking between clients and servers.
MIT License
80 stars 40 forks source link

Creating instances with unsafe, therefore you do not need to put private empty constructors in your packet. #22

Closed kyngs closed 4 years ago

kyngs commented 4 years ago

However this does not work on android, but there is a fallback option, (if system cannot get Unsafe, the system will switch to normal Reflection)

ghost commented 4 years ago

I'd rather not rely on sun classes like Unsafe just to remove some extra constructors.

kyngs commented 4 years ago

Ok, I understand, if you would change your mind, reopen it and accept it. (I will not change any things in my fork probably)