public class Tier extends BattleClause
PokemonSpecification
Modifier and Type | Field and Description |
---|---|
protected boolean |
ban |
protected java.util.Set<PokemonSpecification> |
specs |
Constructor and Description |
---|
Tier(java.lang.String id,
boolean ban,
PokemonSpecification... spec)
Initializes a new tier
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTierDescription()
Gets a description of the tier for use in /tiershow.
|
boolean |
validateSingle(Pokemon pokemon)
The logic executed here is -
When ban is true: if a single spec matches return false (i.e.
|
compareTo, decodeInto, encodeInto, equals, getDescription, getID, getLocalizedName, getLocalizedName, hashCode, setDescription, toString, validateTeam
protected final java.util.Set<PokemonSpecification> specs
protected final boolean ban
public Tier(java.lang.String id, boolean ban, PokemonSpecification... spec)
id
- The id of the tier/battle clauseban
- If the tier is a ban listspec
- The specs checked for this ban listpublic boolean validateSingle(Pokemon pokemon)
validateSingle
in class BattleClause
pokemon
- The Pokémon to check.public java.lang.String getTierDescription()