From b8e3ff6572467f9e8371d665231582329a69ba0f Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 8 Jan 2011 03:34:24 +0000 Subject: [PATCH] Added block.getBiome() By: Dinnerbone --- paper-api/src/main/java/org/bukkit/Biome.java | 20 +++++++++++++++++++ paper-api/src/main/java/org/bukkit/Block.java | 7 +++++++ 2 files changed, 27 insertions(+) create mode 100644 paper-api/src/main/java/org/bukkit/Biome.java diff --git a/paper-api/src/main/java/org/bukkit/Biome.java b/paper-api/src/main/java/org/bukkit/Biome.java new file mode 100644 index 0000000000..265b99ce15 --- /dev/null +++ b/paper-api/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/paper-api/src/main/java/org/bukkit/Block.java b/paper-api/src/main/java/org/bukkit/Block.java index d2719be28a..7e8ec5d4dd 100644 --- a/paper-api/src/main/java/org/bukkit/Block.java +++ b/paper-api/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(); }