Interface IImportableContainer

All Known Implementing Classes:
BattleRulesBaseScreen, BattleRulesFixedScreen, BattleRulesNPCEditorScreen, BattleRulesPlayerScreen, IndividualEditorBaseScreen, PartyEditorBaseScreen, PokemonEditorIndividualScreen, PokemonEditorPartyScreen, TrainerEditorPartyScreen, TrainerEditorPokemonScreen

public interface IImportableContainer
A container that allows import/export of an object via strings.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets exportable text for the current Pokémon.
    default Pokemon[]
     
    net.minecraft.client.gui.screens.Screen
    Returns the screen containing the import/export.
    importText(String importText)
    Parses import text and saves it to the current Pokémon.
    default void
    setPokemon(Pokemon... pokemon)
    Sets the pokemon that was imported
  • Method Details

    • getExportText

      String getExportText()
      Gets exportable text for the current Pokémon.
      Returns:
      Exportable text for the current Pokémon.
    • importText

      String importText(String importText)
      Parses import text and saves it to the current Pokémon.
      Parameters:
      importText - The text to save to the current Pokémon.
      Returns:
      Null if the import was successful, or an error description if the import failed.
    • setPokemon

      default void setPokemon(Pokemon... pokemon)
      Sets the pokemon that was imported
      Parameters:
      pokemon - The pokemon
    • getPokemon

      default Pokemon[] getPokemon()
    • getScreen

      net.minecraft.client.gui.screens.Screen getScreen()
      Returns the screen containing the import/export.
      Returns:
      The screen containing the import/export.