java.lang.Object
com.pixelmonmod.pixelmon.battles.controller.participants.BattleParticipant
com.pixelmonmod.pixelmon.battles.controller.participants.TrainerParticipant
All Implemented Interfaces:
BattleViewer

public class TrainerParticipant extends BattleParticipant
An NPC Trainer battle participant.
  • Field Details

    • trainer

      public NPCTrainer trainer
      The Trainer entity that this participant is representing.
  • Constructor Details

    • TrainerParticipant

      public TrainerParticipant(NPCTrainer trainer, net.minecraft.world.entity.player.Player opponent, int numPokemon) throws IllegalStateException
      Initializes the participant.
      Parameters:
      trainer - The Trainer entity that this participant is representing.
      opponent - The player that is battling the Trainer.
      numPokemon - The number of Pokémon to be sent out by the Trainer.
      Throws:
      IllegalStateException - When the player is prevented from battling the NPC.
    • TrainerParticipant

      public TrainerParticipant(NPCTrainer trainer, net.minecraft.world.entity.player.Player opponent, int numPokemon, List<Pokemon> teamSelection) throws IllegalStateException
      Initializes the participant.
      Parameters:
      trainer - The Trainer entity that this participant is representing.
      opponent - The player that is battling the Trainer.
      numPokemon - The number of Pokémon to be sent out by the Trainer.
      teamSelection - The team selected by the Trainer for battle.
      Throws:
      IllegalStateException - When the player is prevented from battling the NPC.
    • TrainerParticipant

      public TrainerParticipant(NPCTrainer trainer, int numPokemon) throws IllegalStateException
      Initializes the participant.
      Parameters:
      trainer - The Trainer entity that this participant is representing.
      numPokemon - The number of Pokémon to be sent out by the Trainer.
      Throws:
      IllegalStateException - When the player is prevented from battling the NPC.
  • Method Details