public ProtocolTest() {
//Scan for API packets
packetClasses.addAll(PojoClassFactory.enumerateClassesByExtendingType("com.bergerkiller.bukkit.common.protocol", NMSPacket.class, null));
//Sctan for NMS packets
nmsPacketClasses.addAll(PojoClassFactory.enumerateClassesByExtendingType("net.minecraft.server", Packet.class, new PojoClassFilter() {
@Override
public boolean include(PojoClass pojoClass) {
return pojoClass.getName().contains("PacketPlay");
}