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 Summary
Modifier and TypeMethodDescriptiongetColorfulExportText(Pokemon data) Used for converting thePokemonto the formatted text colorfullygetExportText(Pokemon data) Used for converting thePokemonto the formatted textgetExportText(Pokemon... pokemon) getExportText(PartyStorage party) getExportText(Collection<Pokemon> pokemon) default StringgetFormattedExportedText(Pokemon... pokemon) Converts the givenPokemoninto a new line seperated formatted textdefault StringConverts the givenPokemonin the givenPartyStorageinto a new line seperated formatted textdefault StringgetFormattedExportedText(Collection<Pokemon> pokemon) Converts the givenPokemoninto a new line seperated formatted textimportText(String importText) Imports formatted text to a Pokemon instanceimportText(String... importText) Imports formatted text to a Pokemon instanceimportText(Collection<String> importText) Imports formatted text to a Pokemon instance
-
Method Details
-
getFormattedExportedText
Converts the givenPokemonin the givenPartyStorageinto a new line seperated formatted text- Parameters:
party- The party converted- Returns:
- The exported text
-
getFormattedExportedText
Converts the givenPokemoninto a new line seperated formatted text- Parameters:
pokemon- The pokemon converted- Returns:
- The exported text
-
getFormattedExportedText
Converts the givenPokemoninto a new line seperated formatted text- Parameters:
pokemon- The pokemon converted- Returns:
- The exported text
-
getExportText
- Parameters:
party- The party converted- Returns:
- The exported text
-
getExportText
- Parameters:
pokemon- The pokemon converted- Returns:
- The exported text
-
getExportText
- Parameters:
pokemon- The pokemon converted- Returns:
- The exported text
-
getExportText
Used for converting thePokemonto the formatted text- Parameters:
data- The pokemon being converted- Returns:
- The formatted text
-
getColorfulExportText
Used for converting thePokemonto the formatted text colorfully- Parameters:
data- The pokemon being converted- Returns:
- The colorful formatted text
-
importText
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
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
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
-