// Path: src/protocolsupportpocketstuff/api/util/PocketPacketListener.java
// public interface PocketPacketListener { }
// 
// Path: src/protocolsupportpocketstuff/util/packet/serializer/PacketSerializer.java
// public class PacketSerializer {
// 
// 	public static int readPacketId(ByteBuf from) {
// 		int id = VarNumberSerializer.readVarInt(from);
// 		return id;
// 	}
// 
// }


import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import io.netty.buffer.ByteBuf;
import protocolsupport.api.Connection;
import protocolsupport.api.Connection.PacketListener;
import protocolsupport.api.ProtocolType;
import protocolsupport.api.utils.Any;
import protocolsupport.protocol.ConnectionImpl;
import protocolsupportpocketstuff.api.util.PocketPacketHandler;
import protocolsupportpocketstuff.api.util.PocketPacketListener;
import protocolsupportpocketstuff.util.packet.serializer.PacketSerializer;
package protocolsupportpocketstuff.packet;



public class PEReceiver {

	protected static final Map<Integer, Any<PEPacket, Set<Handler>>> packetHandlers = new HashMap<>();

    //=====================================================\\
    //						Registration				   \\
    //=====================================================\\

	@Deprecated
	@SuppressWarnings("unchecked")
// Path: src/protocolsupportpocketstuff/api/util/PocketPacketListener.java
// public interface PocketPacketListener { }
// 
// Path: src/protocolsupportpocketstuff/util/packet/serializer/PacketSerializer.java
// public class PacketSerializer {
// 
// 	public static int readPacketId(ByteBuf from) {
// 		int id = VarNumberSerializer.readVarInt(from);
// 		return id;
// 	}
// 
// }


// Path: src/protocolsupportpocketstuff/packet/PEReceiver.java
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import io.netty.buffer.ByteBuf;
import protocolsupport.api.Connection;
import protocolsupport.api.Connection.PacketListener;
import protocolsupport.api.ProtocolType;
import protocolsupport.api.utils.Any;
import protocolsupport.protocol.ConnectionImpl;
import protocolsupportpocketstuff.api.util.PocketPacketHandler;
import protocolsupportpocketstuff.api.util.PocketPacketListener;
import protocolsupportpocketstuff.util.packet.serializer.PacketSerializer;

package protocolsupportpocketstuff.packet;



public class PEReceiver {

	protected static final Map<Integer, Any<PEPacket, Set<Handler>>> packetHandlers = new HashMap<>();

    //=====================================================\\
    //						Registration				   \\
    //=====================================================\\

	@Deprecated
	@SuppressWarnings("unchecked")
	public static void registerPacketListeners(PocketPacketListener listener) {