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