SPIGOT-4174: Expose BlockCanBuildEvent BlockData

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2018-07-29 16:20:06 +10:00
parent 175280220b
commit 19b0790b3c

View file

@ -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;