Interface IImportableContainer
- All Known Implementing Classes:
BattleRulesBaseScreen
,BattleRulesFixedScreen
,BattleRulesNPCEditorScreen
,BattleRulesPlayerScreen
,IndividualEditorBaseScreenOld
,PartyEditorBaseScreenOld
,PokemonEditorIndividualScreen
,PokemonEditorIndividualScreenOld
,PokemonEditorPartyScreenOld
,PokemonEditorTeamScreen
,TrainerEditorPartyScreenOld
,TrainerEditorPokemonScreenOld
public interface IImportableContainer
A container that allows import/export of an object via strings.
-
Method Summary
Modifier and TypeMethodDescriptionGets 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
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
Sets the pokemon that was imported- Parameters:
pokemon
- The pokemon
-
getPokemon
-
getScreen
net.minecraft.client.gui.screens.Screen getScreen()Returns the screen containing the import/export.- Returns:
- The screen containing the import/export.
-