getItemInHand

The ItemStack for the item in the player's hand when they
placed the block

canBuild

public boolean canBuild()

Gets the value whether the player would be allowed to build here.
Defaults to spawn if the server was going to stop them (such as, the
player is in Spawn). Note that this is an entirely different check
than BLOCK_CANBUILD, as this refers to a player, not universe-physics
rule like cactus on dirt.

Returns:

boolean whether the server would allow a player to build here

setBuild

public void setBuild(boolean canBuild)

Sets the canBuild state of this event. Set to true if you want the
player to be able to build.