Class PokemonConverterFactory
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.export.PokemonConverterFactory
Static utility class for using the
PokemonConverterProxy
and PokemonConverterRegistry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getExportText
(Pokemon data) Used for converting thePokemon
to the formatted textgetExportText
(Pokemon... pokemon) getExportText
(PartyStorage party) getExportText
(Collection<Pokemon> pokemon) static String
getFormattedExportedText
(Pokemon... pokemon) Converts the givenPokemon
into a new line seperated formatted textstatic String
Converts the givenPokemon
in the givenPartyStorage
into a new line seperated formatted textstatic String
getFormattedExportedText
(Collection<Pokemon> pokemon) Converts the givenPokemon
into a new line seperated formatted textstatic Pokemon
importText
(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 givenPokemon
in the givenPartyStorage
into a new line seperated formatted text- Parameters:
party
- The party converted- Returns:
- The exported text
-
getFormattedExportedText
Converts the givenPokemon
into a new line seperated formatted text- Parameters:
pokemon
- The pokemon converted- Returns:
- The exported text
-
getFormattedExportedText
Converts the givenPokemon
into 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 thePokemon
to the formatted text- Parameters:
data
- The pokemon being converted- Returns:
- The 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
-