forked from External/mage
updated some methods to support collections of card subclasses
This commit is contained in:
parent
c552234e9c
commit
3b5147f6ee
6 changed files with 37 additions and 28 deletions
|
|
@ -1,13 +1,13 @@
|
|||
|
||||
package mage.cards;
|
||||
|
||||
import mage.filter.FilterCard;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.game.Game;
|
||||
|
||||
public interface Cards extends Set<UUID>, Serializable {
|
||||
|
||||
|
|
@ -19,9 +19,9 @@ public interface Cards extends Set<UUID>, Serializable {
|
|||
|
||||
void setOwner(UUID ownerId, Game game);
|
||||
|
||||
void addAll(List<Card> createCards);
|
||||
void addAll(List<? extends Card> createCards);
|
||||
|
||||
void addAll(Set<Card> createCards);
|
||||
void addAll(Set<? extends Card> createCards);
|
||||
|
||||
Set<Card> getCards(Game game);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue