Enum Class Terrain

java.lang.Object
java.lang.Enum<Terrain>
net.risingworld.api.definitions.Terrain
All Implemented Interfaces:
Serializable, Comparable<Terrain>, Constable

public enum Terrain extends Enum<Terrain>
Represents terrain materials
  • Enum Constant Details

    • Air

      public static final Terrain Air
    • Stone

      public static final Terrain Stone
    • Gravel1

      public static final Terrain Gravel1
    • Gravel2

      public static final Terrain Gravel2
    • Gravel3

      public static final Terrain Gravel3
    • Dirt

      public static final Terrain Dirt
    • Mud

      public static final Terrain Mud
    • Farmland

      public static final Terrain Farmland
    • FarmlandWet

      public static final Terrain FarmlandWet
    • Forestground1

      public static final Terrain Forestground1
    • Forestground2

      public static final Terrain Forestground2
    • Forestground3

      public static final Terrain Forestground3
    • Forestmoss

      public static final Terrain Forestmoss
    • Volcanic

      public static final Terrain Volcanic
    • Obsidian

      public static final Terrain Obsidian
    • ObsidianGlow

      public static final Terrain ObsidianGlow
    • Drydirt

      public static final Terrain Drydirt
    • Sanddesert

      public static final Terrain Sanddesert
    • Sandbeach

      public static final Terrain Sandbeach
    • Sandunderwater

      public static final Terrain Sandunderwater
    • Desertstone

      public static final Terrain Desertstone
    • Sandstone1

      public static final Terrain Sandstone1
    • Sandstone2

      public static final Terrain Sandstone2
    • Redclay

      public static final Terrain Redclay
    • Rubble

      public static final Terrain Rubble
    • Snow

      public static final Terrain Snow
    • Ice

      public static final Terrain Ice
    • Underwater

      public static final Terrain Underwater
    • Corals

      public static final Terrain Corals
    • Hellstone

      public static final Terrain Hellstone
    • HellstoneGlow

      public static final Terrain HellstoneGlow
    • Cobble

      public static final Terrain Cobble
    • Coal

      public static final Terrain Coal
    • Sulfur

      public static final Terrain Sulfur
    • Iron

      public static final Terrain Iron
    • Aluminium

      public static final Terrain Aluminium
    • Tungsten

      public static final Terrain Tungsten
    • Gold

      public static final Terrain Gold
    • Grass

      public static final Terrain Grass
    • GrassArid

      public static final Terrain GrassArid
    • GrassDry

      public static final Terrain GrassDry
    • GrassDead

      public static final Terrain GrassDead
    • GrassFrozen

      public static final Terrain GrassFrozen
    • GrassForest

      public static final Terrain GrassForest
    • GrassJungle

      public static final Terrain GrassJungle
    • GrassSea

      public static final Terrain GrassSea
    • GrassSeaweed

      public static final Terrain GrassSeaweed
    • GrassAridForest

      public static final Terrain GrassAridForest
    • Water

      public static final Terrain Water
    • WaterFlow

      public static final Terrain WaterFlow
    • WaterTemp

      public static final Terrain WaterTemp
    • WaterInfinite

      public static final Terrain WaterInfinite
    • WaterStatic

      public static final Terrain WaterStatic
    • SaltWater

      public static final Terrain SaltWater
    • SaltWaterFlow

      public static final Terrain SaltWaterFlow
    • SaltWaterTemp

      public static final Terrain SaltWaterTemp
    • SaltWaterInfinite

      public static final Terrain SaltWaterInfinite
    • SaltWaterStatic

      public static final Terrain SaltWaterStatic
  • Field Details

    • id

      public final int id
      The actual terrain ID
  • 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
    • get

      public static Terrain get(int id)
    • isAir

      public static boolean isAir(int id)
    • isGrass

      public static boolean isGrass(int id)
    • isWater

      public static boolean isWater(int id)
    • isOre

      public static boolean isOre(int id)
    • getRawID

      public static short getRawID(Terrain terrain, float strength)