mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
SPIGOT-4174: Expose BlockCanBuildEvent BlockData
By: md_5 <git@md-5.net>
This commit is contained in:
parent
175280220b
commit
19b0790b3c
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue