public class PokemonConverterRegistry
extends java.lang.Object
PokemonConverterProxy types
The default instance is used by the editor for parsing logic| Modifier and Type | Field and Description |
|---|---|
static PokemonConverterProxy |
SHOWDOWN_CONVERTER |
| Constructor and Description |
|---|
PokemonConverterRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<PokemonConverterProxy> |
getConverter(java.lang.String id)
Attempts to get the converter with the given ID
|
static PokemonConverterProxy |
getDefault()
Gets registered default instance
|
static <T extends PokemonConverterProxy> |
registerConverter(java.lang.String id,
T proxy)
Registers a converter with the given id
|
static void |
setDefault(PokemonConverterProxy converter)
Sets the default converter used by the mod
|
public static final PokemonConverterProxy SHOWDOWN_CONVERTER
public static <T extends PokemonConverterProxy> T registerConverter(java.lang.String id, T proxy)
T - The class typeid - The id of the converterproxy - The converter instancepublic static java.util.Optional<PokemonConverterProxy> getConverter(java.lang.String id)
id - The id to search forpublic static PokemonConverterProxy getDefault()
public static void setDefault(PokemonConverterProxy converter)
converter - The default