MCProtocolLib icon indicating copy to clipboard operation
MCProtocolLib copied to clipboard

Implementation for inbound and outbound splitting

Open AlexProgrammerDE opened this issue 3 weeks ago • 1 comments

This PR basically splits PacketProtocol into PacketProtocol and packetRegistry. A PacketProtocol defines basic stuff about the protocol like SRV and it provides incoming and outgoing Packet registries. A PacketRegistry only contains packet id mappings and everything related to the actual packet classes. The MinecraftProtocol extends the PacketProtocol and allows dynamically switching the PacketRegistries that are incoming and outgoing.

AlexProgrammerDE avatar Jun 16 '24 05:06 AlexProgrammerDE