public class PlayerBucketEmptyEvent extends Object
| Constructor and Description |
|---|
PlayerBucketEmptyEvent(Player who,
Block blockClicked,
BlockFace blockFace,
ItemInstance bucket,
ItemInstance itemInHand) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlockClicked() |
BlockFace |
getBlockFace() |
ItemInstance |
getBucket() |
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 PlayerBucketEmptyEvent(Player who, Block blockClicked, BlockFace blockFace, ItemInstance bucket, ItemInstance itemInHand)
public Player getPlayer()
PlayerEventgetPlayer in interface PlayerEventpublic Block getBlockClicked()
public BlockFace getBlockFace()
public ItemInstance getBucket()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.public ItemInstance getItem()
public void setItem(ItemInstance item)
Copyright © 2017–2018 NukkitX. All rights reserved.