Class PokemonBanClause
java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.clauses.BattleClause
com.pixelmonmod.pixelmon.battles.api.rules.clauses.type.PokemonBanClause
- All Implemented Interfaces:
IEncodeable
,Comparable<BattleClause>
Bans certain Pokémon.
-
Constructor Summary
ConstructorDescriptionPokemonBanClause
(String id, PokemonBase... pokemon) Creates a clause to ban certain Pokémon.PokemonBanClause
(String id, Species... pokemon) Creates a clause to ban certain Pokémon. -
Method Summary
Modifier and TypeMethodDescriptionboolean
validateSingle
(Pokemon pokemon) Checks if the rule allows a 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, validateTeam
-
Constructor Details
-
PokemonBanClause
Creates a clause to ban certain Pokémon.- Parameters:
id
- The unique ID of the battle clause.pokemon
- The banned Pokémon.
-
PokemonBanClause
Creates a clause to ban certain Pokémon.- Parameters:
id
- The unique ID of the battle clause.pokemon
- The banned Pokémon.
-
-
Method Details
-
validateSingle
Description copied from class:BattleClause
Checks if the rule allows a Pokémon to be chosen for battle.- Overrides:
validateSingle
in classBattleClause
- Parameters:
pokemon
- The Pokémon to check.- Returns:
- Whether the rule allows the given Pokémon to be chosen for battle.
-