Package com.pixelmonmod.pixelmon.battles
Class BattleQueryPlayer
java.lang.Object
com.pixelmonmod.pixelmon.battles.BattleQueryPlayer
Holds information about a player in a battle query.
-
Field Summary
Modifier and TypeFieldDescriptionThe PixelmonEntity sent out by the player to start the battle.net.minecraft.server.level.ServerPlayer
The player represented by the container.The Pokémon sent out by the player to start the battle.The response of the player to the battle query. -
Constructor Summary
ConstructorDescriptionBattleQueryPlayer
(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon) Initializes a query player object with Pokémon instead of a PixelmonEntity.BattleQueryPlayer
(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmonEntity) Initializes a query player object. -
Method Summary
Modifier and TypeMethodDescriptionCreates a single battle player participant from the query player.getParticipant
(PixelmonEntity second) Creates a double battle player participant from the query player.
-
Field Details
-
player
public net.minecraft.server.level.ServerPlayer playerThe player represented by the container. -
pixelmonEntity
The PixelmonEntity sent out by the player to start the battle. -
pokemon
The Pokémon sent out by the player to start the battle. -
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
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
Creates a single battle player participant from the query player.- Returns:
- A single battle player participant from the query player.
-
getParticipant
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.
-