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
|
block
public 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 Cancellable
public void cancel(boolean cancelled)
cancel
in interface Cancellable
cancelled
- set the cancellation state of the eventpublic Block blockClicked()
Copyright © 2016. All rights reserved.