summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java b/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java
index 668bfa9f..3aa54d39 100644
--- a/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java
+++ b/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java
@@ -65,6 +65,15 @@ public class BlockCanBuildEvent extends BlockEvent {
return blockData.getMaterial();
}
+ /**
+ * Gets the BlockData that we are trying to place.
+ *
+ * @return The BlockData that we are trying to place
+ */
+ public BlockData getBlockData() {
+ return blockData;
+ }
+
@Override
public HandlerList getHandlers() {
return handlers;