public class PokemonFactory
extends java.lang.Object
Pokemon
instancesConstructor and Description |
---|
PokemonFactory() |
Modifier and Type | Method and Description |
---|---|
static Pokemon |
copy(Pokemon pokemon)
Creates a deep copy of the given Pokémon
|
static Pokemon |
create(net.minecraft.nbt.CompoundNBT nbt)
Creates a new Pokémon from the given NBT compound
|
static Pokemon |
create(net.minecraft.network.PacketBuffer buffer)
Creates a new Pokémon from the given packet buffer
|
static Pokemon |
create(PokemonSpecification spec)
Creates a new implementation of the Pokémon using the given spec
|
static Pokemon |
create(Species species)
Creates an implementation of the Pokémon from the given species
|
static Pokemon |
create(java.util.UUID pokemonUUID)
Creates a new
Pokemon implementation with the given UUID |
static void |
setProxy(PokemonProxy<?> proxy)
Sets the proxy implementation - Defaults to
PixelmonPokemonProxy |
public static void setProxy(PokemonProxy<?> proxy)
PixelmonPokemonProxy
proxy
- The new proxy implementationpublic static Pokemon create(java.util.UUID pokemonUUID)
Pokemon
implementation with the given UUIDpokemonUUID
- The uuid of the new Pokémonpublic static Pokemon create(Species species)
species
- The species of the Pokémonpublic static Pokemon create(PokemonSpecification spec)
spec
- The spec of the given Pokémonpublic static Pokemon create(net.minecraft.nbt.CompoundNBT nbt)
nbt
- The nbt providedpublic static Pokemon create(net.minecraft.network.PacketBuffer buffer)
buffer
- The buffer provided