From f7d308d4ad352859de5d758ab97cf8b768ed7e69 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 29 Jul 2018 16:20:06 +1000 Subject: SPIGOT-4174: Expose BlockCanBuildEvent BlockData --- src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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; -- cgit v1.2.3