Class PokemonFactory

java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.PokemonFactory

public class PokemonFactory extends Object
Static factory for creating Pokemon instances
  • Constructor Details

    • PokemonFactory

      public PokemonFactory()
  • Method Details

    • setProxy

      public static void setProxy(PokemonProxy<?> proxy)
      Sets the proxy implementation - Defaults to PixelmonPokemonProxy
      Parameters:
      proxy - The new proxy implementation
    • create

      public static Pokemon create(UUID pokemonUUID)
      Creates a new Pokemon implementation with the given UUID
      Parameters:
      pokemonUUID - The uuid of the new Pokémon
      Returns:
      The new Pokémon
    • create

      public static Pokemon create(Species species)
      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

      public static Pokemon create(PokemonSpecification spec)
      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

      public static Pokemon create(net.minecraft.nbt.CompoundTag nbt)
      Creates a new Pokémon from the given NBT compound
      Parameters:
      nbt - The nbt provided
      Returns:
      The new Pokémon
    • create

      public static Pokemon create(net.minecraft.network.FriendlyByteBuf buffer)
      Creates a new Pokémon from the given packet buffer
      Parameters:
      buffer - The buffer provided
      Returns:
      The new Pokémon
    • copy

      public static Pokemon copy(Pokemon pokemon)
      Creates a deep copy of the given Pokémon
      Parameters:
      pokemon - The Pokémon to copy
      Returns:
      The copy