Class BlockCanBuildEvent


public class BlockCanBuildEvent extends BlockEvent
Called when we try to place a block, to see if we can build it here or not.

Note:

  • The Block returned by getBlock() is the block we are trying to place on, not the block we are trying to place.
  • If you want to figure out what is being placed, use getMaterial() instead.