public boolean filter(Object o,List list) throws Exception {
  for (  Protocol protocol : protocolList) {
    if (protocol.isFiltered(o.getClass())) {
      protocol.filterPacket(userConnection,o,list);
      return true;
    }
  }
  return false;
}

public boolean filter ( Object o , List list ) throws Exception { for ( Protocol protocol : protocolList ) { if ( protocol . isFiltered ( o . getClass ( ) ) ) { protocol . filterPacket ( userConnection , o , list ) ; return true ; } } return false ; }
use the pipeline to filter a nms packet
