Class PokemonConverterRegistry
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.export.PokemonConverterRegistry
A registry class containing the registered
PokemonConverterProxy
types
The default instance is used by the editor for parsing logic-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<PokemonConverterProxy>
getConverter
(String id) Attempts to get the converter with the given IDstatic PokemonConverterProxy
Gets registered default instancestatic <T extends PokemonConverterProxy>
TregisterConverter
(String id, T proxy) Registers a converter with the given idstatic void
setDefault
(PokemonConverterProxy converter) Sets the default converter used by the mod
-
Field Details
-
SHOWDOWN_CONVERTER
-
-
Constructor Details
-
PokemonConverterRegistry
public PokemonConverterRegistry()
-
-
Method Details
-
registerConverter
Registers a converter with the given id- Type Parameters:
T
- The class type- Parameters:
id
- The id of the converterproxy
- The converter instance- Returns:
- Unmodified version of the converter
-
getConverter
Attempts to get the converter with the given ID- Parameters:
id
- The id to search for- Returns:
- Optional of converter with given id
-
getDefault
Gets registered default instance- Returns:
- The default converter used in the mod
-
setDefault
Sets the default converter used by the mod- Parameters:
converter
- The default
-