Class MultipleSpeciesClause
java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.clauses.BattleClause
com.pixelmonmod.pixelmon.battles.api.rules.clauses.type.MultipleSpeciesClause
- All Implemented Interfaces:
IEncodeable
,Comparable<BattleClause>
Prevents a team from having two or more Pokémon with the same Pokédex number.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
validateTeam
(List<Pokemon> team) Checks if the rule allows a list of Pokémon to be chosen for battle.Methods inherited from class com.pixelmonmod.pixelmon.battles.api.rules.clauses.BattleClause
compareTo, decodeInto, encodeInto, equals, getDescription, getID, getLocalizedName, getLocalizedName, hashCode, setDescription, toString, validateSingle
-
Constructor Details
-
MultipleSpeciesClause
public MultipleSpeciesClause()Initializes the clause.
-
-
Method Details
-
validateTeam
Description copied from class:BattleClause
Checks if the rule allows a list of Pokémon to be chosen for battle.- Overrides:
validateTeam
in classBattleClause
- Parameters:
team
- The Pokémon to check.- Returns:
- Whether the rule allows the given team to be chosen for battle.
-