mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Improved isUsefulPumpKeyword.
This commit is contained in:
@@ -204,6 +204,14 @@ public class CardLists {
|
||||
return CardLists.filter(cardList, CardPredicates.isType(cardType));
|
||||
}
|
||||
|
||||
public static List<Card> getNotColor(Iterable<Card> cardList, byte color) {
|
||||
return CardLists.filter(cardList, Predicates.not(CardPredicates.isColor(color)));
|
||||
}
|
||||
|
||||
public static List<Card> getColor(Iterable<Card> cardList, byte color) {
|
||||
return CardLists.filter(cardList, CardPredicates.isColor(color));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new list of cards by applying a filter to this one.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user