Enum Class BattleMode

java.lang.Object
java.lang.Enum<BattleMode>
com.pixelmonmod.pixelmon.api.battles.BattleMode
All Implemented Interfaces:
Serializable, Comparable<BattleMode>, Constable

public enum BattleMode extends Enum<BattleMode>
Enum for battle GUIs.
  • Enum Constant Details

    • WAITING

      public static final BattleMode WAITING
    • CHOOSE_POKEMON

      public static final BattleMode CHOOSE_POKEMON
    • CHOOSE_BAG

      public static final BattleMode CHOOSE_BAG
    • USE_BAG

      public static final BattleMode USE_BAG
    • CHOOSE_ATTACK

      public static final BattleMode CHOOSE_ATTACK
    • APPLY_TO_POKEMON

      public static final BattleMode APPLY_TO_POKEMON
    • YES_NO_REPLACE_MOVE

      public static final BattleMode YES_NO_REPLACE_MOVE
    • YES_NO_FORFEIT

      public static final BattleMode YES_NO_FORFEIT
    • ENFORCED_SWITCH

      public static final BattleMode ENFORCED_SWITCH
    • LEVEL_UP

      public static final BattleMode LEVEL_UP
    • REPLACE_ATTACK

      public static final BattleMode REPLACE_ATTACK
    • REPLACE_ATTACK_EXTERNAL

      public static final BattleMode REPLACE_ATTACK_EXTERNAL
    • CHOOSE_TARGETS

      public static final BattleMode CHOOSE_TARGETS
    • CHOOSE_RELEARN_MOVE

      public static final BattleMode CHOOSE_RELEARN_MOVE
    • CHOOSE_TUTOR

      public static final BattleMode CHOOSE_TUTOR
    • CHOOSE_ETHER

      public static final BattleMode CHOOSE_ETHER
    • MEGA_EVOLUTION

      public static final BattleMode MEGA_EVOLUTION
    • ENFORCED_REVIVE

      public static final BattleMode ENFORCED_REVIVE
  • Method Details

    • values

      public static BattleMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BattleMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isBattleModeUsedInBattle

      public static boolean isBattleModeUsedInBattle(BattleMode battleMode)
      Function to return if the current Battle Mode of the Battle Screen can ever be shown in battle.
      Parameters:
      battleMode - The current mode of the Battle Screen.
      Returns:
      if the mode of the Battle Screen can ever be shown in battle.
    • isBattleModeAvailableInEveryBattle

      public static boolean isBattleModeAvailableInEveryBattle(BattleMode battleMode)
      Function to return if the current Battle Mode of the Battle Screen can be accessed during any battle, and not just a screen that can pop up situationally in a battle.
      Parameters:
      battleMode - The current mode of the Battle Screen.
      Returns:
      if the mode of the Battle Screen can be accessed during any battle.
    • isModeThatCreatesPopUp

      public static boolean isModeThatCreatesPopUp(BattleMode battleMode)