Interface PokemonConverterProxy

All Known Implementing Classes:
ShowdownConverter

public interface PokemonConverterProxy
Represents a converter that is used for converting a Pokemon to and from a given text format
  • Method Details

    • getFormattedExportedText

      default String getFormattedExportedText(PartyStorage party)
      Converts the given Pokemon in the given PartyStorage into a new line seperated formatted text
      Parameters:
      party - The party converted
      Returns:
      The exported text
    • getFormattedExportedText

      default String getFormattedExportedText(Collection<Pokemon> pokemon)
      Converts the given Pokemon into a new line seperated formatted text
      Parameters:
      pokemon - The pokemon converted
      Returns:
      The exported text
    • getFormattedExportedText

      default String getFormattedExportedText(Pokemon... pokemon)
      Converts the given Pokemon into a new line seperated formatted text
      Parameters:
      pokemon - The pokemon converted
      Returns:
      The exported text
    • getExportText

      default List<String> getExportText(PartyStorage party)
      Converts the given Pokemon in the given PartyStorage into a List of formatted text
      Parameters:
      party - The party converted
      Returns:
      The exported text
    • getExportText

      default List<String> getExportText(Collection<Pokemon> pokemon)
      Converts the given Pokemon into a List of formatted text
      Parameters:
      pokemon - The pokemon converted
      Returns:
      The exported text
    • getExportText

      default List<String> getExportText(Pokemon... pokemon)
      Converts the given Pokemon into a List of formatted text
      Parameters:
      pokemon - The pokemon converted
      Returns:
      The exported text
    • getExportText

      String getExportText(Pokemon data)
      Used for converting the Pokemon to the formatted text
      Parameters:
      data - The pokemon being converted
      Returns:
      The formatted text
    • getColorfulExportText

      String getColorfulExportText(Pokemon data)
      Used for converting the Pokemon to the formatted text colorfully
      Parameters:
      data - The pokemon being converted
      Returns:
      The colorful formatted text
    • importText

      default List<Pokemon> importText(Collection<String> importText) throws PokemonImportException
      Imports formatted text to a Pokemon instance
      Parameters:
      importText - The formatted text
      Returns:
      The Pokemon instance
      Throws:
      PokemonImportException - thrown when there's an error with the given text
    • importText

      default List<Pokemon> importText(String... importText) throws PokemonImportException
      Imports formatted text to a Pokemon instance
      Parameters:
      importText - The formatted text
      Returns:
      The Pokemon instance
      Throws:
      PokemonImportException - thrown when there's an error with the given text
    • importText

      Pokemon importText(String importText) throws PokemonImportException
      Imports formatted text to a Pokemon instance
      Parameters:
      importText - The formatted text
      Returns:
      The Pokemon instance
      Throws:
      PokemonImportException - thrown when there's an error with the given text