package mcjty.xnet.network;

import mcjty.lib.network.PacketHandler;
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import net.minecraftforge.fml.relauncher.Side;

public class XNetMessages {
    public static SimpleNetworkWrapper INSTANCE;

    public static void registerNetworkMessages(SimpleNetworkWrapper net) {
        INSTANCE = net;

        // Server side
        net.registerMessage(PacketGetChannels.Handler.class, PacketGetChannels.class, PacketHandler.nextID(), Side.SERVER);
        net.registerMessage(PacketGetLocalChannelsRouter.Handler.class, PacketGetLocalChannelsRouter.class, PacketHandler.nextID(), Side.SERVER);
        net.registerMessage(PacketGetRemoteChannelsRouter.Handler.class, PacketGetRemoteChannelsRouter.class, PacketHandler.nextID(), Side.SERVER);
        net.registerMessage(PacketGetConnectedBlocks.Handler.class, PacketGetConnectedBlocks.class, PacketHandler.nextID(), Side.SERVER);

        // Client side
        net.registerMessage(PacketChannelsReady.Handler.class, PacketChannelsReady.class, PacketHandler.nextID(), Side.CLIENT);
        net.registerMessage(PacketLocalChannelsRouterReady.Handler.class, PacketLocalChannelsRouterReady.class, PacketHandler.nextID(), Side.CLIENT);
        net.registerMessage(PacketRemoteChannelsRouterReady.Handler.class, PacketRemoteChannelsRouterReady.class, PacketHandler.nextID(), Side.CLIENT);
        net.registerMessage(PacketConnectedBlocksReady.Handler.class, PacketConnectedBlocksReady.class, PacketHandler.nextID(), Side.CLIENT);
    }
}

@@ -485,32 +485,38 @@
 cketHandler.next
+Packet
 ID(), Side.SERVE
@@ -637,32 +637,38 @@
 cketHandler.next
+Packet
 ID(), Side.SERVE
@@ -791,32 +791,38 @@
 cketHandler.next
+Packet
 ID(), Side.SERVE
@@ -935,32 +935,38 @@
 cketHandler.next
+Packet
 ID(), Side.SERVE
@@ -1093,32 +1093,38 @@
 cketHandler.next
+Packet
 ID(), Side.CLIEN
@@ -1249,32 +1249,38 @@
 cketHandler.next
+Packet
 ID(), Side.CLIEN
@@ -1407,32 +1407,38 @@
 cketHandler.next
+Packet
 ID(), Side.CLIEN
@@ -1563,16 +1563,22 @@
 ler.next
+Packet
 ID(), Si

Fix deprecated methods