use of logisticspipes.network.PacketHandler in project LogisticsPipes by RS485.
the class MainProxy method createChannels.
public static void createChannels() {
MainProxy.channels = NetworkRegistry.INSTANCE.newChannel(MainProxy.networkChannelName, new PacketHandler());
for (Side side : Side.values()) {
FMLEmbeddedChannel channel = MainProxy.channels.get(side);
String type = channel.findChannelHandlerNameForType(PacketHandler.class);
channel.pipeline().addAfter(type, PacketInboundHandler.class.getName(), new PacketInboundHandler());
}
}
Aggregations