mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-11 10:01:55 +01:00
SPIGOT-4174: Expose BlockCanBuildEvent BlockData
By: md_5 <git@md-5.net>
This commit is contained in:
parent
175280220b
commit
19b0790b3c
@ -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 New Issue
Block a user