java.lang.Object
java.lang.Enum<Aggression>
com.pixelmonmod.pixelmon.api.pokemon.species.aggression.Aggression
All Implemented Interfaces:
ITranslatable, Serializable, Comparable<Aggression>, Constable

public enum Aggression extends Enum<Aggression> implements ITranslatable
Pokémon aggression behavior.
  • Enum Constant Details

    • TIMID

      public static final Aggression TIMID
    • PASSIVE

      public static final Aggression PASSIVE
    • AGGRESSIVE

      public static final Aggression AGGRESSIVE
  • Method Details

    • values

      public static Aggression[] 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 Aggression 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
    • getNext

      public Aggression getNext()
      Gets the next logical Aggression
      Returns:
      The next aggression type
    • getAggression

      public static Aggression getAggression(int index)
      Gets a type of aggression.
      Parameters:
      index - The index of the aggression.
      Returns:
      The aggression corresponding with the index, or passive if the index does not correspond with any aggression.
    • nextAggression

      public static Aggression nextAggression(Aggression aggression)
      Returns the next aggression (in enum index order) from the given one.
      Parameters:
      aggression - The aggression to find the next aggression from.
      Returns:
      The next aggression.
    • getLocalizedName

      public String getLocalizedName()
      Returns the localized name of the aggression mode.
      Specified by:
      getLocalizedName in interface ITranslatable
      Returns:
      The localized name of the aggression mode.
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface ITranslatable