Class PokemonFactory
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.PokemonFactory
Static factory for creating
Pokemon instances-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PokemonCreates a deep copy of the given Pokémonstatic Pokemoncreate(PokemonSpecification spec) Creates a new implementation of the Pokémon using the given specstatic PokemonCreates an implementation of the Pokémon from the given speciesstatic PokemonCreates a newPokemonimplementation with the given UUIDstatic Pokemoncreate(net.minecraft.nbt.CompoundTag nbt) Creates a new Pokémon from the given NBT compoundstatic Pokemoncreate(net.minecraft.network.FriendlyByteBuf buffer) Creates a new Pokémon from the given packet bufferstatic voidsetProxy(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 newPokemonimplementation 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
-