public class BattleQueryPlayer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
PixelmonEntity |
pixelmonEntity
The PixelmonEntity sent out by the player to start the battle.
|
net.minecraft.entity.player.ServerPlayerEntity |
player
The player represented by the container.
|
Pokemon |
pokemon
The Pokémon sent out by the player to start the battle.
|
EnumBattleQueryResponse |
response
The response of the player to the battle query.
|
| Constructor and Description |
|---|
BattleQueryPlayer(net.minecraft.entity.player.ServerPlayerEntity player,
PixelmonEntity pixelmonEntity)
Initializes a query player object.
|
BattleQueryPlayer(net.minecraft.entity.player.ServerPlayerEntity player,
Pokemon pokemon)
Initializes a query player object with Pokémon instead of a PixelmonEntity.
|
| Modifier and Type | Method and Description |
|---|---|
PlayerParticipant |
getParticipant()
Creates a single battle player participant from the query player.
|
PlayerParticipant |
getParticipant(PixelmonEntity second)
Creates a double battle player participant from the query player.
|
public net.minecraft.entity.player.ServerPlayerEntity player
public PixelmonEntity pixelmonEntity
public Pokemon pokemon
public EnumBattleQueryResponse response
public BattleQueryPlayer(net.minecraft.entity.player.ServerPlayerEntity player,
PixelmonEntity pixelmonEntity)
player - The player represented by the container.pixelmonEntity - The Pokémon sent out by the player to start the battle.public BattleQueryPlayer(net.minecraft.entity.player.ServerPlayerEntity player,
Pokemon pokemon)
player - The player represented by the container.pokemon - The Pokémon sent out by the player to start the battle.public PlayerParticipant getParticipant()
public PlayerParticipant getParticipant(PixelmonEntity second)
second - The second Pokémon that the player will lead with in battle.