PlayerBucketEvent
Extends PlayerEvent
Implements Cancellable
Methods
__construct()
php
public function __construct(\pocketmine\player\Player $who, \pocketmine\block\Block $blockClicked, int $blockFace, \pocketmine\item\Item $bucket, \pocketmine\item\Item $itemInHand)getBlockClicked()
php
public function getBlockClicked() : \pocketmine\block\BlockgetBlockFace()
php
public function getBlockFace() : intgetBucket()
php
public function getBucket() : \pocketmine\item\ItemReturns the bucket used in this event
getItem()
php
public function getItem() : \pocketmine\item\ItemReturns the item in hand after the event
setItem()
php
public function setItem(\pocketmine\item\Item $item) : void