Class EvolutionQueryList

java.lang.Object
com.pixelmonmod.pixelmon.entities.pixelmon.helpers.EvolutionQueryList

public class EvolutionQueryList extends Object
Keeps track of all Pokémon currently evolving.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final List<EvolutionQuery>
    All Pokémon that are currently evolving.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.
    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(net.minecraft.world.level.Level world)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • queryList

      public static final List<EvolutionQuery> queryList
      All Pokémon that are currently evolving.
  • Constructor Details

    • EvolutionQueryList

      public EvolutionQueryList()
  • Method Details

    • declineQuery

      public static void declineQuery(net.minecraft.server.level.ServerPlayer player, UUID pokemonUUID)
      Cancels an evolution.
      Parameters:
      pokemonUUID - The UUID of the Pokémon to cancel an evolution for.
    • acceptQuery

      public static void acceptQuery(net.minecraft.server.level.ServerPlayer player, UUID pokemonUUID)
      Evolves a Pokémon.
      Parameters:
      pokemonUUID - The UUID of the evolving Pokémon.
    • get

      public static EvolutionQuery get(net.minecraft.world.entity.player.Player player)
      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(net.minecraft.world.level.Level world)
    • spawnPokemon

      public static void spawnPokemon(net.minecraft.server.level.ServerPlayer player, UUID pokemonUUID)
      Sends out a Pokémon to evolve it.
      Parameters:
      player - The player evolving the Pokémon.
      pokemonUUID - The UUID of the evolving Pokémon.