mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-31 21:37:39 +01:00
Added block.getBiome()
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
61f1ef6117
commit
b8e3ff6572
20
paper-api/src/main/java/org/bukkit/Biome.java
Normal file
20
paper-api/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…
Reference in New Issue
Block a user