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.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 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.LEGENDARY
public boolean isLegendary(boolean excludeMythicals)
this#hasTag(String)
and Tags.LEGENDARY
public boolean isMythical()
this#hasTag(String)
and Tags.MYTHICAL
public boolean isUltraBeast()
this#hasTag(String)
and Tags.ULTRA_BEAST
public boolean isAlolan()
this#hasTag(String)
and Tags.ALOLAN
public boolean isGalarian()
this#hasTag(String)
and Tags.GALARIAN
public boolean isHisuian()
this#hasTag(String)
and Tags.HISUIAN
public boolean isPaldean()
this#hasTag(String)
and Tags.PALDEAN
public boolean isTemporary()
this#hasTag(String)
and Tags.TEMPORARY