java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.stats.evolution.Evolution
Direct Known Subclasses:
InteractEvolution, LevelingEvolution, TickingEvolution, TradeEvolution

public abstract class Evolution extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • conditions

      public ArrayList<EvoCondition> conditions()
    • to

      public PokemonSpecification to()
    • evoType

      public String evoType()
    • moves

      public ArrayList<String> moves()
    • canEvolve

      @Deprecated(forRemoval=true, since="9.2.7") protected boolean canEvolve(PixelmonEntity pixelmonEntity)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use canEvolve(Pokemon) instead
      Prevents the Pokémon from evolving if it fails certain criteria.
      Parameters:
      pixelmonEntity - The Pokémon that wants to evolve
    • canEvolve

      protected boolean canEvolve(Pokemon pokemon)
    • doEvolution

      @Deprecated(forRemoval=true, since="9.2.7") public boolean doEvolution(PixelmonEntity pixelmon, String cause)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Starts the evolution for a PixelmonEntity.
      Parameters:
      pixelmon - The Pokémon evolving
      cause - The reason the Pokémon is evolving.
      Returns:
      Whether the evolution started
    • doEvolution

      public boolean doEvolution(Pokemon pokemon, String cause)
      Starts the evolution for a PixelmonEntity.
      Parameters:
      pokemon - The Pokémon evolving
      cause - The reason the Pokémon is evolving.
      Returns:
      Whether the evolution started
    • finishedEvolving

      public void finishedEvolving(Pokemon pokemon)
      Starts the evolution for a PixelmonEntity.
      Parameters:
      pokemon - The Pokémon that was evolving
    • finishedEvolving

      public void finishedEvolving(PixelmonEntity pixelmonEntity)
      Deprecated.
      Starts the evolution for a PixelmonEntity.
      Parameters:
      pixelmonEntity - The Pokémon that was evolving
    • consumesHeldItem

      public boolean consumesHeldItem()
    • getConditionsOfType

      public <T extends EvoCondition> List<T> getConditionsOfType(Class<T> clazz)