Class EvolutionQueryList
java.lang.Object
com.pixelmonmod.pixelmon.entities.pixelmon.helpers.EvolutionQueryList
Keeps track of all Pokémon currently evolving.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List
<EvolutionQuery> All Pokémon that are currently evolving. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
acceptQuery
(net.minecraft.server.level.ServerPlayer player, UUID pokemonUUID) Evolves a Pokémon.static void
declineQuery
(net.minecraft.server.level.ServerPlayer player, UUID pokemonUUID) Cancels an evolution.static EvolutionQuery
get
(net.minecraft.world.entity.player.Player player) Gets the evolution that a player is currently in.static void
spawnPokemon
(net.minecraft.server.level.ServerPlayer player, UUID pokemonUUID) Sends out a Pokémon to evolve it.static void
tick()
-
Field Details
-
queryList
All Pokémon that are currently evolving.
-
-
Constructor Details
-
EvolutionQueryList
public EvolutionQueryList()
-
-
Method Details
-
declineQuery
Cancels an evolution.- Parameters:
pokemonUUID
- The UUID of the Pokémon to cancel an evolution for.
-
acceptQuery
Evolves a Pokémon.- Parameters:
pokemonUUID
- The UUID of the evolving Pokémon.
-
get
Gets the evolution that a player is currently in.- Parameters:
player
- The player to get an evolution for.- Returns:
- The evolution that a player is currently in, or null if the player is not in one.
-
tick
public static void tick() -
spawnPokemon
Sends out a Pokémon to evolve it.- Parameters:
player
- The player evolving the Pokémon.pokemonUUID
- The UUID of the evolving Pokémon.
-