public class ItemPreventClause extends BattleClause
| Constructor and Description |
|---|
ItemPreventClause(java.lang.String id,
EnumHeldItems... heldItems)
Creates a clause to ban specific held items.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
validateSingle(Pokemon pokemon)
Checks if the rule allows a Pokémon to be chosen for battle.
|
compareTo, decodeInto, encodeInto, equals, getDescription, getID, getLocalizedName, getLocalizedName, hashCode, setDescription, toString, validateTeampublic ItemPreventClause(java.lang.String id,
EnumHeldItems... heldItems)
id - The unique ID of the battle clause.heldItems - The banned held items.public boolean validateSingle(Pokemon pokemon)
BattleClausevalidateSingle in class BattleClausepokemon - The Pokémon to check.