Added block.getBiome()

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot 2011-01-08 03:34:24 +00:00
parent 61f1ef6117
commit b8e3ff6572
2 changed files with 27 additions and 0 deletions

View File

@ -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
}

View File

@ -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();
}