Package net.risingworld.api.definitions
Enum Class Terrain
- All Implemented Interfaces:
Serializable
,Comparable<Terrain>
,Constable
Represents terrain materials
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Terrain
get
(int id) static short
static boolean
isAir
(int id) static boolean
isGrass
(int id) static boolean
isOre
(int id) static boolean
isWater
(int id) static Terrain
Returns the enum constant of this class with the specified name.static Terrain[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Air
-
Stone
-
Gravel1
-
Gravel2
-
Gravel3
-
Dirt
-
Mud
-
Farmland
-
FarmlandWet
-
Forestground1
-
Forestground2
-
Forestground3
-
Forestmoss
-
Volcanic
-
Obsidian
-
ObsidianGlow
-
Drydirt
-
Sanddesert
-
Sandbeach
-
Sandunderwater
-
Desertstone
-
Sandstone1
-
Sandstone2
-
Redclay
-
Rubble
-
Snow
-
Ice
-
Underwater
-
Corals
-
Hellstone
-
HellstoneGlow
-
Cobble
-
Coal
-
Sulfur
-
Iron
-
Aluminium
-
Tungsten
-
Gold
-
Grass
-
GrassArid
-
GrassDry
-
GrassDead
-
GrassFrozen
-
GrassForest
-
GrassJungle
-
GrassSea
-
GrassSeaweed
-
GrassAridForest
-
Water
-
WaterFlow
-
WaterTemp
-
WaterInfinite
-
WaterStatic
-
SaltWater
-
SaltWaterFlow
-
SaltWaterTemp
-
SaltWaterInfinite
-
SaltWaterStatic
-
-
Field Details
-
id
public final int idThe actual terrain ID
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
get
-
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
-