java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.tags.FormTags

public class FormTags extends Object
Represents a form having tags such as legendary, galar, ololan.
  • Constructor Details

    • FormTags

      public FormTags(Set<String> tags)
      Default constructor taking the tags
      Parameters:
      tags - The tags for the form
  • Method Details

    • getTags

      public Set<String> getTags()
      Gets an unmodifiable set of the tags for the form
      Returns:
      All tags associated with this form
    • getRegionalTag

      public String getRegionalTag()
      Gets the regional tag for this form if it exists
      Returns:
      The regional tag for this form, or null if none exists
    • hasTag

      public boolean hasTag(String tag)
      Checks if the pokemon has a given tag
      Parameters:
      tag - The tag being checked
      Returns:
      True if they have the tag
    • hasTags

      public boolean hasTags(String... tags)
      Checks if the pokemon has given tags LOGICAL OR
      Parameters:
      tags - The tags being checked
      Returns:
      True if they have the tag
    • isLegendary

      public boolean isLegendary()
      Checks if the form is a legend Short cut for {@link this#hasTag(String)} and Tags.LEGENDARY
      Returns:
      True if is a legend
    • isLegendary

      public boolean isLegendary(boolean excludeMythicals)
      Checks if the form is a legend Short cut for {@link this#hasTag(String)} and Tags.LEGENDARY
      Returns:
      True if is a legend
    • isMythical

      public boolean isMythical()
      Checks if the form is a mythical Short cut for {@link this#hasTag(String)} and Tags.MYTHICAL
      Returns:
      True if is a mythical
    • isUltraBeast

      public boolean isUltraBeast()
      Checks if the form is an ultrabeast Short cut for {@link this#hasTag(String)} and Tags.ULTRA_BEAST
      Returns:
      True if is an ultrabeast
    • isAlolan

      public boolean isAlolan()
      Checks if the form is alolan Short cut for {@link this#hasTag(String)} and Tags.ALOLAN
      Returns:
      True if is an alolan
    • isGalarian

      public boolean isGalarian()
      Checks if the form is galarian Short cut for {@link this#hasTag(String)} and Tags.GALARIAN
      Returns:
      True if is an galarian
    • isHisuian

      public boolean isHisuian()
      Checks if the form is hisuian Short cut for {@link this#hasTag(String)} and Tags.HISUIAN
      Returns:
      True if is a hisuian
    • isPaldean

      public boolean isPaldean()
      Checks if the form is paldean Short cut for {@link this#hasTag(String)} and Tags.PALDEAN
      Returns:
      True if is a paldean
    • isTemporary

      public boolean isTemporary()
      Checks if the form is temporary Short cut for {@link this#hasTag(String)} and Tags.TEMPORARY
      Returns:
      True if temporary