Class BattleQueryPlayer

java.lang.Object
com.pixelmonmod.pixelmon.battles.BattleQueryPlayer

public class BattleQueryPlayer extends Object
Holds information about a player in a battle query.
  • Field Details

    • player

      public net.minecraft.server.level.ServerPlayer player
      The player represented by the container.
    • pixelmonEntity

      public PixelmonEntity pixelmonEntity
      The PixelmonEntity sent out by the player to start the battle.
    • pokemon

      public Pokemon pokemon
      The Pokémon sent out by the player to start the battle.
    • response

      public EnumBattleQueryResponse response
      The response of the player to the battle query.
  • Constructor Details

    • BattleQueryPlayer

      public BattleQueryPlayer(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmonEntity)
      Initializes a query player object.
      Parameters:
      player - The player represented by the container.
      pixelmonEntity - The Pokémon sent out by the player to start the battle.
    • BattleQueryPlayer

      public BattleQueryPlayer(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon)
      Initializes a query player object with Pokémon instead of a PixelmonEntity.
      Parameters:
      player - The player represented by the container.
      pokemon - The Pokémon sent out by the player to start the battle.
  • Method Details

    • getParticipant

      public PlayerParticipant getParticipant()
      Creates a single battle player participant from the query player.
      Returns:
      A single battle player participant from the query player.
    • getParticipant

      public PlayerParticipant getParticipant(PixelmonEntity second)
      Creates a double battle player participant from the query player.
      Parameters:
      second - The second Pokémon that the player will lead with in battle.
      Returns:
      A double battle player participant from the query player.