diff --git a/paper-api/src/main/java/org/bukkit/block/BlockState.java b/paper-api/src/main/java/org/bukkit/block/BlockState.java index 65de77d3d9..7e181017fe 100644 --- a/paper-api/src/main/java/org/bukkit/block/BlockState.java +++ b/paper-api/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; @@ -78,6 +79,13 @@ public interface BlockState { */ int getZ(); + /** + * Gets the location of this block + * + * @return location + */ + Location getLocation(); + /** * Gets the chunk which contains this block * @@ -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.
- *
+ * new values as defined by this state. + *

* 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.
- *
+ * new values as defined by this state. + *

* 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.
- *
+ * false in this eventuality. + *

* 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); }