Enum Class Terrain

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

public enum Terrain extends Enum<Terrain>
Created by Jay113355 on 11/29/2019. https://bulbapedia.bulbagarden.net/wiki/Terrain
  • Enum Constant Details

    • NONE

      public static final Terrain NONE
    • ELECTRIC

      public static final Terrain ELECTRIC
    • GRASSY

      public static final Terrain GRASSY
    • MISTY

      public static final Terrain MISTY
    • PSYCHIC

      public static final Terrain PSYCHIC
  • Method Details

    • values

      public static Terrain[] 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 Terrain 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