mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Support changing preferred art for cards in catalog
Support adding and removing catalog cards from favorites Only show unique cards in Catalog by default
This commit is contained in:
@@ -347,6 +347,11 @@ public final class CardDb implements ICardDatabase {
|
||||
return roAllCards;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PaperCard> getAllCards(String cardName) {
|
||||
return allCardsByName.get(cardName);
|
||||
}
|
||||
|
||||
/** Returns a modifiable list of cards matching the given predicate */
|
||||
@Override
|
||||
public List<PaperCard> getAllCards(Predicate<PaperCard> predicate) {
|
||||
|
||||
@@ -25,6 +25,7 @@ public interface ICardDatabase extends Iterable<PaperCard> {
|
||||
|
||||
Collection<PaperCard> getUniqueCards();
|
||||
List<PaperCard> getAllCards();
|
||||
List<PaperCard> getAllCards(String cardName);
|
||||
List<PaperCard> getAllCards(Predicate<PaperCard> predicate);
|
||||
|
||||
Predicate<? super PaperCard> wasPrintedInSets(List<String> allowedSetCodes);
|
||||
|
||||
Reference in New Issue
Block a user