Added block.getBiome()
This commit is contained in:
parent
574e959269
commit
15329e9d58
20
src/main/java/org/bukkit/Biome.java
Normal file
20
src/main/java/org/bukkit/Biome.java
Normal 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
|
||||||
|
}
|
@ -159,4 +159,11 @@ public interface Block {
|
|||||||
* @return BlockState with the current state of this block.
|
* @return BlockState with the current state of this block.
|
||||||
*/
|
*/
|
||||||
BlockState getState();
|
BlockState getState();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the biome that this block resides in
|
||||||
|
*
|
||||||
|
* @return Biome type containing this block
|
||||||
|
*/
|
||||||
|
Biome getBiome();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user