summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}