diff options
author | md_5 <git@md-5.net> | 2018-07-29 16:20:06 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-29 16:20:06 +1000 |
commit | f7d308d4ad352859de5d758ab97cf8b768ed7e69 (patch) | |
tree | a1e9aa2767f49f0f0b055db693ef2eebeef17d50 | |
parent | 32dd1e593b312a894b03095ac0d22a37f72ee5c5 (diff) | |
download | bukkit-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.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; |