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, validateTeam
public 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)
BattleClause
validateSingle
in class BattleClause
pokemon
- The Pokémon to check.