public class BlockPlaceEvent extends BlockEvent implements Cancellable
| Constructor and Description |
|---|
BlockPlaceEvent(Player player,
Block block,
Block blockClicked,
BlockDirection faceClicked) |
| Modifier and Type | Method and Description |
|---|---|
Block |
blockClicked()
Gets the block clicked on to place this block
|
void |
cancel(boolean cancelled) |
BlockDirection |
faceClicked()
Gets the block face of the block that was clicked on to place this block
|
boolean |
isIgnored() |
Player |
player()
Returns the player associated with this event
|
Substance |
typePlaced()
Get the Material of the placed block
|
blockpublic BlockPlaceEvent(Player player, Block block, Block blockClicked, BlockDirection faceClicked)
player - Player who placed this blockblock - Block that was placedblockClicked - BlockfaceClicked - BlockFacepublic BlockDirection faceClicked()
public Substance typePlaced()
public boolean isIgnored()
isIgnored in interface Cancellablepublic void cancel(boolean cancelled)
cancel in interface Cancellablecancelled - set the cancellation state of the eventpublic Block blockClicked()
Copyright © 2016. All rights reserved.