summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorMike Primm <mike@primmhome.com>2012-03-04 10:40:27 -0600
committerEvilSeph <evilseph@gmail.com>2012-03-08 01:52:01 -0500
commit1bf2a2550603403224094dd4d0ddc3756683076b (patch)
tree7e7e995e3a7d11483a428aee5bc7379759a2a541 /src/main/java/org
parentc84229ad72e938608dbfbeafbeb7c4940f0bf3de (diff)
downloadbukkit-1bf2a2550603403224094dd4d0ddc3756683076b.tar
bukkit-1bf2a2550603403224094dd4d0ddc3756683076b.tar.gz
bukkit-1bf2a2550603403224094dd4d0ddc3756683076b.tar.lz
bukkit-1bf2a2550603403224094dd4d0ddc3756683076b.tar.xz
bukkit-1bf2a2550603403224094dd4d0ddc3756683076b.zip
[Bleeding] Add APIs for editing biome data. Addresses BUKKIT-1075
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/World.java13
-rw-r--r--src/main/java/org/bukkit/block/Block.java7
2 files changed, 17 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
index 9beee093..2035a93b 100644
--- a/src/main/java/org/bukkit/World.java
+++ b/src/main/java/org/bukkit/World.java
@@ -692,14 +692,21 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Gets the biome for the given block coordinates.
- * <p />
- * It is safe to run this method when the block does not exist, it will not create the block.
*
* @param x X coordinate of the block
* @param z Z coordinate of the block
* @return Biome of the requested block
*/
- public Biome getBiome(int x, int z);
+ Biome getBiome(int x, int z);
+
+ /**
+ * Sets the biome for the given block coordinates
+ *
+ * @param x X coordinate of the block
+ * @param z Z coordinate of the block
+ * @param bio new Biome type for this block
+ */
+ void setBiome(int x, int z, Biome bio);
/**
* Gets the temperature for the given block coordinates.
diff --git a/src/main/java/org/bukkit/block/Block.java b/src/main/java/org/bukkit/block/Block.java
index f64a83be..3aca0c82 100644
--- a/src/main/java/org/bukkit/block/Block.java
+++ b/src/main/java/org/bukkit/block/Block.java
@@ -232,6 +232,13 @@ public interface Block extends Metadatable {
Biome getBiome();
/**
+ * Sets the biome that this block resides in
+ *
+ * @param bio new Biome type for this block
+ */
+ void setBiome(Biome bio);
+
+ /**
* Returns true if the block is being powered by Redstone.
*
* @return True if the block is powered.