Class PokemonFactory
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.PokemonFactory
Static factory for creating
Pokemon
instances-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Pokemon
Creates a deep copy of the given Pokémonstatic Pokemon
create
(PokemonSpecification spec) Creates a new implementation of the Pokémon using the given specstatic Pokemon
Creates an implementation of the Pokémon from the given speciesstatic Pokemon
Creates a newPokemon
implementation with the given UUIDstatic Pokemon
create
(net.minecraft.nbt.CompoundTag nbt) Creates a new Pokémon from the given NBT compoundstatic Pokemon
create
(net.minecraft.network.FriendlyByteBuf buffer) Creates a new Pokémon from the given packet bufferstatic void
setProxy
(PokemonProxy<?> proxy) Sets the proxy implementation - Defaults toPixelmonPokemonProxy
-
Constructor Details
-
PokemonFactory
public PokemonFactory()
-
-
Method Details
-
setProxy
Sets the proxy implementation - Defaults toPixelmonPokemonProxy
- Parameters:
proxy
- The new proxy implementation
-
create
Creates a newPokemon
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
-
create
Creates a new Pokémon from the given packet buffer- Parameters:
buffer
- The buffer 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
-