Enum Class BattleType

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

public enum BattleType extends Enum<BattleType>
Different battle formats.
  • Enum Constant Details

  • Method Details

    • values

      public static BattleType[] 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 BattleType 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
    • getNumPokemon

      public int getNumPokemon()
    • areSlotsLocked

      public boolean areSlotsLocked()
    • next

      public BattleType next()
      Gets the battle type directly after the current one.
      Returns:
      The battle type directly after the current one.
    • getLocalizedName

      public String getLocalizedName()
      Gets the localized name of the battle type.
      Returns:
      The localized name of the battle type.
    • getFromOrdinal

      public static BattleType getFromOrdinal(int ordinal)
      Gets a battle type from its enum ordinal.
      Parameters:
      ordinal - The ordinal of the response enum.
      Returns:
      The battle type corresponding with the specified ordinal, or Single if the ordinal is out of bounds.