Hello,
for educational purpose I am trying to port a mod from 1.20.1 to 1.20.2+ but I can't understand how the new networking system works.
I manage to get through it for the most part, but I'm stuck on how to register packets.
The previous method was:
INSTANCE.registerMessage(id++, CPExecuteSkill.class, CPExecuteSkill::toBytes, CPExecuteSkill::fromBytes, CPExecuteSkill::handle);
with instance being of type SimpleChannel.
(The forge document is not up to date for this part unfortunatly)
Any help or clear documentation would be welcome.