diff options
-rw-r--r-- | src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java | 9 |
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; |