Package de.rasmusantons.cubiomes
Enum Class StructureType
- All Implemented Interfaces:
Serializable,Comparable<StructureType>,Constable
All StructureTypes that cubiomes knows.
Note: Cubiomes defines some duplicate names. In C those are equal,
in Java they are not, e.g. Jungle_Temple != Jungle_Pyramid.
Because of that, duplicate (deprecated) values should probably not be used.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionfor locations of temple generation attempts pre 1.13Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic StructureTypefromValue(int value) Returns the structure type for a given internal id.intgetValue()Returns cubiomes' internal id of this structure type.static StructureTypeReturns the enum constant of this class with the specified name.static StructureType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Feature
for locations of temple generation attempts pre 1.13 -
Desert_Pyramid
-
Jungle_Temple
-
Jungle_Pyramid
Deprecated. -
Swamp_Hut
-
Igloo
-
Village
-
Ocean_Ruin
-
Shipwreck
-
Monument
-
Mansion
-
Outpost
-
Ruined_Portal
-
Ruined_Portal_N
-
Ancient_City
-
Treasure
-
Mineshaft
-
Desert_Well
-
Geode
-
Fortress
-
Bastion
-
End_City
-
End_Gateway
-
End_Island
-
Trail_Ruins
-
Trial_Chambers
-
FEATURE_NUM
-
-
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
-
getValue
public int getValue()Returns cubiomes' internal id of this structure type.- Returns:
- cubiomes' internal id of this structure type
-
fromValue
Returns the structure type for a given internal id.- Returns:
- the structure type for a given internal id
-