mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
PlayerPredicates: add hasKeyword
This commit is contained in:
@@ -85,6 +85,15 @@ public final class PlayerPredicates {
|
||||
};
|
||||
}
|
||||
|
||||
public static final Predicate<Player> hasKeyword(final String keyword) {
|
||||
return new Predicate<Player>() {
|
||||
@Override
|
||||
public boolean apply(final Player p) {
|
||||
return p.hasKeyword(keyword);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static final Comparator<Player> compareByZoneSize(final ZoneType zone) {
|
||||
return new Comparator<Player>() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user