From 19b0790b3ccb0f9bbf8bb7d3b0e0c153e9d09e55 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 29 Jul 2018 16:20:06 +1000 Subject: [PATCH] SPIGOT-4174: Expose BlockCanBuildEvent BlockData By: md_5 --- .../java/org/bukkit/event/block/BlockCanBuildEvent.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java index 668bfa9f9b..3aa54d3995 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java +++ b/paper-api/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;