summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomyLobo <stabelweb@gmx.de>2012-02-22 20:08:55 +0100
committerEvilSeph <evilseph@gmail.com>2012-02-27 17:52:44 -0500
commit7d51bc7834903d5c36e1472a45e7ad4673bcad27 (patch)
tree811a25117c4f4662ac62be522330bd3118bc2d10
parent7e382b73bb415fa03aec8678d06ae0a4116e1668 (diff)
downloadbukkit-7d51bc7834903d5c36e1472a45e7ad4673bcad27.tar
bukkit-7d51bc7834903d5c36e1472a45e7ad4673bcad27.tar.gz
bukkit-7d51bc7834903d5c36e1472a45e7ad4673bcad27.tar.lz
bukkit-7d51bc7834903d5c36e1472a45e7ad4673bcad27.tar.xz
bukkit-7d51bc7834903d5c36e1472a45e7ad4673bcad27.zip
Added missing BlockState functions. Addresses BUKKIT-807
-rw-r--r--src/main/java/org/bukkit/block/BlockState.java22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/main/java/org/bukkit/block/BlockState.java b/src/main/java/org/bukkit/block/BlockState.java
index 65de77d3..7e181017 100644
--- a/src/main/java/org/bukkit/block/BlockState.java
+++ b/src/main/java/org/bukkit/block/BlockState.java
@@ -1,6 +1,7 @@
package org.bukkit.block;
import org.bukkit.Chunk;
+import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.material.MaterialData;
@@ -79,6 +80,13 @@ public interface BlockState {
int getZ();
/**
+ * Gets the location of this block
+ *
+ * @return location
+ */
+ Location getLocation();
+
+ /**
* Gets the chunk which contains this block
*
* @return Containing Chunk
@@ -109,8 +117,8 @@ public interface BlockState {
/**
* Attempts to update the block represented by this state, setting it to the
- * new values as defined by this state. <br />
- * <br />
+ * new values as defined by this state.
+ * <p />
* This has the same effect as calling update(false). That is to say,
* this will not modify the state of a block if it is no longer the same
* type as it was when this state was taken. It will return false in this
@@ -123,12 +131,12 @@ public interface BlockState {
/**
* Attempts to update the block represented by this state, setting it to the
- * new values as defined by this state. <br />
- * <br />
+ * new values as defined by this state.
+ * <p />
* Unless force is true, this will not modify the state of a block if it is
* no longer the same type as it was when this state was taken. It will return
- * false in this eventuality.<br />
- * <br />
+ * false in this eventuality.
+ * <p />
* If force is true, it will set the type of the block to match the new state,
* set the state data and then return true.
*
@@ -138,4 +146,6 @@ public interface BlockState {
boolean update(boolean force);
public byte getRawData();
+
+ public void setRawData(byte data);
}