mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +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) {
|
public static final Comparator<Player> compareByZoneSize(final ZoneType zone) {
|
||||||
return new Comparator<Player>() {
|
return new Comparator<Player>() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user