public class BlockBreakEvent extends BlockEvent implements Cancellable
| Constructor and Description |
|---|
BlockBreakEvent(Player player,
Block block,
BlockDirection blockFace,
Item itemInHand) |
| Modifier and Type | Method and Description |
|---|---|
BlockDirection |
blockFace()
Returns the block face clicked to break this block
|
void |
cancel(boolean cancelled) |
boolean |
isIgnored() |
Item |
itemInHand()
Returns the item in the player's hand
|
Player |
player()
Get the player associated with this event
|
blockpublic BlockBreakEvent(Player player, Block block, BlockDirection blockFace, Item itemInHand)
player - Player associated with this eventblock - Block associated with this eventblockFace - BlockFaceitemInHand - ItemStackpublic boolean isIgnored()
isIgnored in interface Cancellablepublic void cancel(boolean cancelled)
cancel in interface Cancellablecancelled - set the cancellation state of the eventpublic Item itemInHand()
public BlockDirection blockFace()
Copyright © 2016. All rights reserved.