Class Evolution
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.stats.evolution.Evolution
- Direct Known Subclasses:
InteractEvolution
,LevelingEvolution
,TickingEvolution
,TradeEvolution
-
Field Summary
Modifier and TypeFieldDescriptionA mapping from an evolution type ID string to the class representing that type. -
Constructor Summary
ConstructorDescriptionEvolution
(String evoType, PokemonSpecification to, EvoCondition... conditions) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected boolean
canEvolve
(PixelmonEntity pixelmonEntity) Deprecated, for removal: This API element is subject to removal in a future version.boolean
boolean
doEvolution
(Pokemon pokemon, String cause) Starts the evolution for a PixelmonEntity.boolean
doEvolution
(PixelmonEntity pixelmon, String cause) Deprecated, for removal: This API element is subject to removal in a future version.UsedoEvolution(Pokemon, String)
insteadevoType()
void
finishedEvolving
(Pokemon pokemon) Starts the evolution for a PixelmonEntity.void
finishedEvolving
(PixelmonEntity pixelmonEntity) Deprecated.UsefinishedEvolving(Pokemon)
instead<T extends EvoCondition>
List<T>getConditionsOfType
(Class<T> clazz) moves()
to()
-
Field Details
-
evolutionTypes
A mapping from an evolution type ID string to the class representing that type. -
cachedTo
-
to
-
conditions
-
moves
-
evoType
-
-
Constructor Details
-
Evolution
-
Evolution
-
-
Method Details
-
conditions
-
to
-
evoType
-
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.UsecanEvolve(Pokemon)
insteadPrevents the Pokémon from evolving if it fails certain criteria.- Parameters:
pixelmonEntity
- The Pokémon that wants to evolve
-
canEvolve
-
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.UsedoEvolution(Pokemon, String)
insteadStarts the evolution for a PixelmonEntity.- Parameters:
pixelmon
- The Pokémon evolvingcause
- The reason the Pokémon is evolving.- Returns:
- Whether the evolution started
-
doEvolution
Starts the evolution for a PixelmonEntity.- Parameters:
pokemon
- The Pokémon evolvingcause
- The reason the Pokémon is evolving.- Returns:
- Whether the evolution started
-
finishedEvolving
Starts the evolution for a PixelmonEntity.- Parameters:
pokemon
- The Pokémon that was evolving
-
finishedEvolving
Deprecated.UsefinishedEvolving(Pokemon)
insteadStarts the evolution for a PixelmonEntity.- Parameters:
pixelmonEntity
- The Pokémon that was evolving
-
consumesHeldItem
public boolean consumesHeldItem() -
getConditionsOfType
-
canEvolve(Pokemon)
instead