Class PokemonConverterFactory
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.export.PokemonConverterFactory
Static utility class for using the
PokemonConverterProxy and PokemonConverterRegistry-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetColorfulExportText(Pokemon data) Used for converting thePokemonto the formatted text colorfully.static StringgetExportText(Pokemon data) Used for converting thePokemonto the formatted textgetExportText(Pokemon... pokemon) getExportText(PartyStorage party) getExportText(Collection<Pokemon> pokemon) static StringgetFormattedExportedText(Pokemon... pokemon) Converts the givenPokemoninto a new line seperated formatted textstatic StringConverts the givenPokemonin the givenPartyStorageinto a new line seperated formatted textstatic StringgetFormattedExportedText(Collection<Pokemon> pokemon) Converts the givenPokemoninto a new line seperated formatted textstatic PokemonimportText(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
-
Constructor Details
-
PokemonConverterFactory
public PokemonConverterFactory()
-
-
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
-