use of org.magic.api.beans.MTGKeyWord.EVENT in project MtgDesktopCompanion by nicho92.
the class KeyWordProvider method getKeywordsFrom.
public Set<MTGKeyWord> getKeywordsFrom(MagicCard magicCard, EVENT... t) {
Set<MTGKeyWord> s = getKeywordsFrom(magicCard);
Set<MTGKeyWord> ret = new HashSet<>();
for (MTGKeyWord k : s) for (EVENT ev : t) if (k.getEvent().equals(ev))
ret.add(k);
return ret;
}
Aggregations