summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-07-29 16:20:06 +1000
committermd_5 <git@md-5.net>2018-07-29 16:20:06 +1000
commitf7d308d4ad352859de5d758ab97cf8b768ed7e69 (patch)
treea1e9aa2767f49f0f0b055db693ef2eebeef17d50
parent32dd1e593b312a894b03095ac0d22a37f72ee5c5 (diff)
downloadbukkit-f7d308d4ad352859de5d758ab97cf8b768ed7e69.tar
bukkit-f7d308d4ad352859de5d758ab97cf8b768ed7e69.tar.gz
bukkit-f7d308d4ad352859de5d758ab97cf8b768ed7e69.tar.lz
bukkit-f7d308d4ad352859de5d758ab97cf8b768ed7e69.tar.xz
bukkit-f7d308d4ad352859de5d758ab97cf8b768ed7e69.zip
SPIGOT-4174: Expose BlockCanBuildEvent BlockData
-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;