public abstract class PlayerBucketEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerBucketEvent(Player player,
Block blockStateClicked,
Direction direction,
Item bucket,
Item itemInHand) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlockClicked() |
Direction |
getBlockFace() |
Item |
getBucket()
Returns the bucket used in this event
|
Item |
getItem()
Returns the item in hand after the event
|
void |
setItem(Item item) |
getPlayergetEventName, isCancelled, setCancelled, setCancelledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCancelled, setCancelled, setCancelledpublic Item getBucket()
public Item getItem()
public void setItem(Item item)
public Block getBlockClicked()
public Direction getBlockFace()
Copyright © 2020. All rights reserved.