T
- The class extending the default Pokemon
classpublic interface PokemonProxy<T extends Pokemon>
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
Modifier and Type | Method and Description |
---|---|
default T |
copy(Pokemon pokemon)
Creates a deep copy of the given Pokémon
|
default T |
create(net.minecraft.nbt.CompoundNBT nbt)
Creates a new Pokémon from the given NBT compound
|
default T |
create(PokemonSpecification spec)
Creates a new implementation of the Pokémon using the given spec
|
default T |
create(Species species)
Creates an implementation of the Pokémon from the given species
|
T |
create(java.util.UUID pokemonUUID)
Creates a new
T implementation with the given UUID |
T create(java.util.UUID pokemonUUID)
T
implementation with the given UUIDpokemonUUID
- The uuid of the new Pokémondefault T create(Species species)
species
- The species of the Pokémondefault T create(PokemonSpecification spec)
spec
- The spec of the given Pokémondefault T create(net.minecraft.nbt.CompoundNBT nbt)
nbt
- The nbt provided