public class BlockPlaceEvent extends Object implements BlockEvent, Cancellable
| Constructor and Description |
|---|
BlockPlaceEvent(Player player,
Block against,
Block oldBlock,
BlockState newBlockState,
ItemStack item) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getAgainst() |
Block |
getBlock() |
ItemStack |
getItem() |
BlockState |
getNewBlockState() |
Player |
getPlayer() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic BlockPlaceEvent(Player player, Block against, Block oldBlock, BlockState newBlockState, ItemStack item)
public Player getPlayer()
public ItemStack getItem()
public BlockState getNewBlockState()
public Block getAgainst()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.public Block getBlock()
getBlock in interface BlockEventCopyright © 2017–2019 NukkitX. All rights reserved.