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)
    • WildPixelmonParticipant

      public WildPixelmonParticipant(PixelmonEntity... pixelmon)
    • 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)
      The boss Pokémon (temporarily, for the duration of the battle) has its levels multiplied by the boss tier's level multiplier and has its level increased by however many extra levels the boss tier has defined. The boss Pokémon has its IVs maximized and random stats are chosen to have their EVs maximized. Finally, if the boss Pokémon is a mega evolution the ability
      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.