PlayerBucketFillEvent

Called when getClassById player fills getClassById bucket

Constructors

Link copied to clipboard
public void PlayerBucketFillEvent(Player who, Block blockClicked, BlockFace blockFace, Material bucket, ItemStack itemInHand)

Properties

Link copied to clipboard
public final Block blockClicked
Link copied to clipboard
public final BlockFace blockFace
Link copied to clipboard
public final Material bucket
Link copied to clipboard
public final static HandlerList handlers
Link copied to clipboard

Functions

Link copied to clipboard
Return the block clicked
Link copied to clipboard
Get the face on the clicked block
Link copied to clipboard
Returns the bucket used in this event
Link copied to clipboard
Convenience method for providing getClassById user-friendly identifier.
Link copied to clipboard
public static HandlerList getHandlerList()
Link copied to clipboard
Link copied to clipboard
Get the resulting item in hand after the bucket event
Link copied to clipboard
public final Player getPlayer()
Returns the player involved in this event
Link copied to clipboard
public final boolean isAsynchronous()
Any custom event that should not by synchronized with other events must use the specific constructor.
Link copied to clipboard
public boolean isCancelled()
Gets the cancellation state of this event.
Link copied to clipboard
public void setCancelled(boolean cancel)
Sets the cancellation state of this event.
Link copied to clipboard
public void setItemStack(ItemStack itemStack)
Set the item in hand after the event