diff options
-rw-r--r-- | src/main/java/org/bukkit/Biome.java | 20 | ||||
-rw-r--r-- | src/main/java/org/bukkit/Block.java | 7 |
2 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Biome.java b/src/main/java/org/bukkit/Biome.java new file mode 100644 index 00000000..265b99ce --- /dev/null +++ b/src/main/java/org/bukkit/Biome.java @@ -0,0 +1,20 @@ + +package org.bukkit; + +/** + * Holds all accepted Biomes in the default server + */ +public enum Biome { + RAINFOREST, + SWAMPLAND, + SEASONAL_FOREST, + FOREST, + SAVANNA, + SHRUBLAND, + TAIGA, + DESERT, + PLAINS, + ICE_DESERT, + TUNDRA, + HELL +} diff --git a/src/main/java/org/bukkit/Block.java b/src/main/java/org/bukkit/Block.java index d2719be2..7e8ec5d4 100644 --- a/src/main/java/org/bukkit/Block.java +++ b/src/main/java/org/bukkit/Block.java @@ -159,4 +159,11 @@ public interface Block { * @return BlockState with the current state of this block. */ BlockState getState(); + + /** + * Returns the biome that this block resides in + * + * @return Biome type containing this block + */ + Biome getBiome(); } |