Interface PokemonProxy<T extends Pokemon>
- Type Parameters:
T
- The class extending the defaultPokemon
class
- All Known Implementing Classes:
PixelmonPokemonProxy
public interface PokemonProxy<T extends Pokemon>
The proxy used for creating a
Pokemon
Implement this factory and override the default methods if you wish to provide a custom Pokemon
implementation
To get the current usage use PokemonFactory
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
Creates a deep copy of the given Pokémondefault T
create
(PokemonSpecification spec) Creates a new implementation of the Pokémon using the given specdefault T
Creates an implementation of the Pokémon from the given speciesCreates a newPokemonProxy
implementation with the given UUIDdefault T
create
(net.minecraft.nbt.CompoundTag nbt) Creates a new Pokémon from the given NBT compound
-
Method Details
-
create
Creates a newPokemonProxy
implementation with the given UUID- Parameters:
pokemonUUID
- The uuid of the new Pokémon- Returns:
- The new Pokémon
-
create
Creates an implementation of the Pokémon from the given species- Parameters:
species
- The species of the Pokémon- Returns:
- The new Pokémon
-
create
Creates a new implementation of the Pokémon using the given spec- Parameters:
spec
- The spec of the given Pokémon- Returns:
- The new Pokémon impl from the spec
-
create
Creates a new Pokémon from the given NBT compound- Parameters:
nbt
- The nbt provided- Returns:
- The new Pokémon
-
copy
Creates a deep copy of the given Pokémon- Parameters:
pokemon
- The Pokémon to copy- Returns:
- The copy
-