public class FormTags
extends java.lang.Object
| Constructor and Description |
|---|
FormTags(java.util.Set<java.lang.String> tags)
Default constructor taking the tags
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRegionalTag()
Gets the regional tag for this form if it exists
|
java.util.Set<java.lang.String> |
getTags()
Gets an unmodifiable set of the tags for the form
|
boolean |
hasTag(java.lang.String tag)
Checks if the pokemon has a given tag
|
boolean |
hasTags(java.lang.String... tags)
Checks if the pokemon has given tags
LOGICAL OR
|
boolean |
isAlolan()
Checks if the form is alolan
Short cut for
this#hasTag(String) and Tags.ALOLAN |
boolean |
isGalarian()
Checks if the form is galarian
Short cut for
this#hasTag(String) and Tags.GALARIAN |
boolean |
isHisuian()
Checks if the form is hisuian
Short cut for
this#hasTag(String) and Tags.HISUIAN |
boolean |
isLegendary()
Checks if the form is a legend
Short cut for
this#hasTag(String) and Tags.LEGENDARY |
boolean |
isLegendary(boolean excludeMythicals)
Checks if the form is a legend
Short cut for
this#hasTag(String) and Tags.LEGENDARY |
boolean |
isMythical()
Checks if the form is a mythical
Short cut for
this#hasTag(String) and Tags.MYTHICAL |
boolean |
isPaldean()
Checks if the form is paldean
Short cut for
this#hasTag(String) and Tags.PALDEAN |
boolean |
isTemporary()
Checks if the form is temporary
Short cut for
this#hasTag(String) and Tags.TEMPORARY |
boolean |
isUltraBeast()
Checks if the form is an ultrabeast
Short cut for
this#hasTag(String) and Tags.ULTRA_BEAST |
public FormTags(java.util.Set<java.lang.String> tags)
tags - The tags for the formpublic java.util.Set<java.lang.String> getTags()
public java.lang.String getRegionalTag()
public boolean hasTag(java.lang.String tag)
tag - The tag being checkedpublic boolean hasTags(java.lang.String... tags)
tags - The tags being checkedpublic boolean isLegendary()
this#hasTag(String) and Tags.LEGENDARYpublic boolean isLegendary(boolean excludeMythicals)
this#hasTag(String) and Tags.LEGENDARYpublic boolean isMythical()
this#hasTag(String) and Tags.MYTHICALpublic boolean isUltraBeast()
this#hasTag(String) and Tags.ULTRA_BEASTpublic boolean isAlolan()
this#hasTag(String) and Tags.ALOLANpublic boolean isGalarian()
this#hasTag(String) and Tags.GALARIANpublic boolean isHisuian()
this#hasTag(String) and Tags.HISUIANpublic boolean isPaldean()
this#hasTag(String) and Tags.PALDEANpublic boolean isTemporary()
this#hasTag(String) and Tags.TEMPORARY