public class PlayerBucketFillEvent extends Object
| Constructor and Description |
|---|
PlayerBucketFillEvent(Player who,
Block blockClicked,
BlockFace blockFace,
ItemStack bucket,
ItemStack itemInHand) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlockClicked() |
BlockFace |
getBlockFace() |
ItemStack |
getBucket() |
ItemStack |
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(ItemStack item) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic Player getPlayer()
PlayerEventgetPlayer in interface PlayerEventpublic Block getBlockClicked()
public BlockFace getBlockFace()
public ItemStack getBucket()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.public ItemStack getItem()
public void setItem(ItemStack item)
Copyright © 2017–2019 NukkitX. All rights reserved.