// Path: src/main/java/net/nickac/lithium/frontend/mod/network/packethandler/PacketMap.java
// public class PacketMap {
// 
//     public final static PacketMap instance = new PacketMap();
// 
//     private PacketMap() {
//     }
// 
//     private final Map<String, PacketIn> classStringMap = new HashMap<>();
// 
//     public void registerPacketIn(String key, PacketIn packet) {
//         classStringMap.put(key, packet);
//     }
// 
//     public PacketIn getByString(String keyString) {
//         return classStringMap.get(keyString);
//     }
// 
// 
// }


import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.nickac.lithium.frontend.mod.network.packethandler.PacketMap;
import net.nickac.lithium.frontend.mod.network.packethandler.in.*;
import java.util.Arrays;
import java.util.List;
package net.nickac.lithium.frontend.mod.network.packethandler.abstracts;



public class PacketHandlerImpl implements PacketHandler {


    static {
        List<PacketIn> packetIns = Arrays.asList(
                new AddToContainer(),
                new CloseWindow(),
                new ControlChanged(),
                new ReceiveWindow(),
                new RemoveFromContainer(),
                new ShowOverlay());
// Path: src/main/java/net/nickac/lithium/frontend/mod/network/packethandler/PacketMap.java
// public class PacketMap {
// 
//     public final static PacketMap instance = new PacketMap();
// 
//     private PacketMap() {
//     }
// 
//     private final Map<String, PacketIn> classStringMap = new HashMap<>();
// 
//     public void registerPacketIn(String key, PacketIn packet) {
//         classStringMap.put(key, packet);
//     }
// 
//     public PacketIn getByString(String keyString) {
//         return classStringMap.get(keyString);
//     }
// 
// 
// }


// Path: src/main/java/net/nickac/lithium/frontend/mod/network/packethandler/abstracts/PacketHandlerImpl.java
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.nickac.lithium.frontend.mod.network.packethandler.PacketMap;
import net.nickac.lithium.frontend.mod.network.packethandler.in.*;
import java.util.Arrays;
import java.util.List;

package net.nickac.lithium.frontend.mod.network.packethandler.abstracts;



public class PacketHandlerImpl implements PacketHandler {


    static {
        List<PacketIn> packetIns = Arrays.asList(
                new AddToContainer(),
                new CloseWindow(),
                new ControlChanged(),
                new ReceiveWindow(),
                new RemoveFromContainer(),
                new ShowOverlay());
        packetIns.forEach((p) -> PacketMap.instance.registerPacketIn(p.key(), p));