public class PlayerBlockPickEvent extends Object implements PlayerEvent, Cancellable
| Constructor and Description |
|---|
PlayerBlockPickEvent(Player player,
Block blockClicked,
ItemInstance item) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlockClicked() |
ItemInstance |
getItem() |
Player |
getPlayer()
Get the player in question.
|
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
void |
setItem(ItemInstance item) |
public PlayerBlockPickEvent(Player player, Block blockClicked, ItemInstance item)
public ItemInstance getItem()
public void setItem(ItemInstance item)
public Block getBlockClicked()
public Player getPlayer()
PlayerEventgetPlayer in interface PlayerEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2019 NukkitX. All rights reserved.