Class PokemonConverterFactory

java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.export.PokemonConverterFactory

public class PokemonConverterFactory extends Object
Static utility class for using the PokemonConverterProxy and PokemonConverterRegistry
  • Constructor Details

    • PokemonConverterFactory

      public PokemonConverterFactory()
  • Method Details

    • getFormattedExportedText

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

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

      public static 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

      public static 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

      public static 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

      public static 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