Class WildPixelmonParticipant

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

public class WildPixelmonParticipant extends BattleParticipant
A wild Pokémon in battle.
  • Constructor Details

    • WildPixelmonParticipant

      public WildPixelmonParticipant(boolean isGrassBattleParticipant, PixelmonEntity... pixelmon)
      Initializes a wild Pokémon participant
      Parameters:
      isGrassBattleParticipant - Whether the Pokémon was spawned from Pixelmon Grass.
      pixelmon - The Pokémon that the participant is representing.
    • WildPixelmonParticipant

      public WildPixelmonParticipant(PixelmonEntity... pixelmon)
      Initializes a wild Pokémon participant.
      Parameters:
      pixelmon - The Pokémon that the participant is representing.
    • WildPixelmonParticipant

      public WildPixelmonParticipant(Pokemon... pokemon)
    • WildPixelmonParticipant

      public WildPixelmonParticipant(int size, Pokemon... pokemon)
  • Method Details

    • hasMorePokemon

      public boolean hasMorePokemon()
      Description copied from class: BattleParticipant
      Checks if the participant has Pokémon that can battle
      Overrides:
      hasMorePokemon in class BattleParticipant
      Returns:
      True if the player has a Pokémon that can battle.
    • preBattleChecks

      public void preBattleChecks()
      Description copied from class: BattleParticipant
      Adds the participant to a battle.
      Overrides:
      preBattleChecks in class BattleParticipant
    • checkAndHandleBossTier

      public void checkAndHandleBossTier(PixelmonWrapper wrapper)
      Description copied from class: BattleParticipant
      Checks if the participant is a boss and then applies the boss tier logic to the provided wrapper.
      Overrides:
      checkAndHandleBossTier in class BattleParticipant
      Parameters:
      wrapper - The wrapper to apply the boss tier logic to.
    • endBattle

      public void endBattle(BattleEndCause cause)
      Description copied from class: BattleParticipant
      Ends the battle the participant is in.
      Specified by:
      endBattle in class BattleParticipant
    • getNextPokemon

      public void getNextPokemon(int position)
      Description copied from class: BattleParticipant
      Sends out the next unfainted Pokémon in the participant's party.
      Overrides:
      getNextPokemon in class BattleParticipant
      Parameters:
      position - The position to send out the Pokémon at.
    • canDynamax

      public boolean canDynamax()
      Description copied from class: BattleParticipant
      Checks if the participant is allowed to Dynamax Pokémon.
      Overrides:
      canDynamax in class BattleParticipant
      Returns:
      Whether the participant is allowed to Dynamax Pokémon.
    • getDisplayName

      public net.minecraft.network.chat.MutableComponent getDisplayName()
      Description copied from class: BattleParticipant
      Returns the name of the entity the participant is representing.
      Overrides:
      getDisplayName in class BattleParticipant
      Returns:
      The name of the entity the participant is representing.
    • isWild

      public boolean isWild()
      Description copied from class: BattleParticipant
      If the participant is a wild Pokémon.
      Overrides:
      isWild in class BattleParticipant
      Returns:
      Whether the participant is a wild Pokémon.