public class ImportExportConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ABILITY_TEXT
Text marking the Ability field.
|
static java.lang.String |
CLONES_TEXT
Text marking the number of Mew clones field.
|
static java.lang.String |
EV_TEXT
Text marking the EVs field.
|
static char |
FEMALE_SYMBOL
Symbol for a female Pokémon.
|
static java.lang.String |
GENDER_TEXT
Text marking the gender field.
|
static java.lang.String |
GROWTH_TEXT
Text marking the growth field.
|
static java.lang.String |
HAPPINESS_TEXT
Text marking the Happiness field.
|
static java.lang.String |
IV_TEXT
Text marking the IVs field.
|
static java.lang.String |
LEVEL_TEXT
Text marking the level field.
|
static char |
MALE_SYMBOL
Symbol for a male Pokémon.
|
static java.lang.String |
MINIOR_CORE_TEXT
Text marking the number of ruby enchants field.
|
static java.lang.String |
MOVE_TEXT
Error text for invalid moves.
|
static java.lang.String |
NATURE_TEXT
Text marking the Nature field.
|
static java.lang.String |
POKE_BALL_TEXT
Text marking the Poké Ball field.
|
static java.lang.String |
RUBY_TEXT
Text marking the number of ruby enchants field.
|
static java.lang.String |
SHINY_TEXT
Text marking the Shiny field.
|
static java.lang.String |
SHINY_YES
Marks that a Pokémon is Shiny.
|
static java.lang.String |
SMELT_TEXT
Text marking the number of ores smelted field.
|
static java.lang.String |
SPECIES_TEXT |
static java.lang.String[] |
STAT_TEXT
The names of stats for export/import.
|
Modifier and Type | Method and Description |
---|---|
static void |
addColonSeparated(java.lang.StringBuilder builder,
java.lang.String label,
java.lang.Object value)
Separates a label and a value by a colon, and inserts a newline afterwards.
|
static void |
addLine(java.lang.StringBuilder builder,
java.lang.String label)
Adds a new line of text.
|
static java.lang.String |
getExportText(Pokemon data)
Gets exportable text for the Pokémon.
|
static int |
getIntAfterColon(java.lang.String string)
Gets the part of a string that is after a colon, converted to an integer.
|
static java.lang.String |
getStringAfterColon(java.lang.String string)
Gets the part of a string that is after a colon.
|
static Pokemon |
importText(java.lang.String importText)
Parses import text and saves it to the Pokémon.
|
public static final java.lang.String SPECIES_TEXT
public static final java.lang.String GENDER_TEXT
public static final java.lang.String ABILITY_TEXT
public static final java.lang.String LEVEL_TEXT
public static final java.lang.String SHINY_TEXT
public static final java.lang.String HAPPINESS_TEXT
public static final java.lang.String EV_TEXT
public static final java.lang.String NATURE_TEXT
public static final java.lang.String IV_TEXT
public static final java.lang.String POKE_BALL_TEXT
public static final java.lang.String GROWTH_TEXT
public static final java.lang.String CLONES_TEXT
public static final java.lang.String RUBY_TEXT
public static final java.lang.String MINIOR_CORE_TEXT
public static final java.lang.String SMELT_TEXT
public static final java.lang.String MOVE_TEXT
public static final java.lang.String[] STAT_TEXT
public static final char MALE_SYMBOL
public static final char FEMALE_SYMBOL
public static final java.lang.String SHINY_YES
public static java.lang.String getExportText(Pokemon data)
data
- The data object to export from.public static void addLine(java.lang.StringBuilder builder, java.lang.String label)
builder
- The string builder to add the line to.label
- The line of text to add.public static void addColonSeparated(java.lang.StringBuilder builder, java.lang.String label, java.lang.Object value)
builder
- The string builder to add the colon-separated string to.label
- The label to put before the colon.value
- The value to put after the colon.public static Pokemon importText(java.lang.String importText) throws ShowdownImportException
importText
- The text to save to the Pokémon.ShowdownImportException
public static int getIntAfterColon(java.lang.String string)
string
- The string to filter.public static java.lang.String getStringAfterColon(java.lang.String string)
string
- The string to filter.