player = $who; $this->blockClicked = $blockClicked; $this->blockFace = $blockFace; $this->item = $itemInHand; $this->bucket = $bucket; } /** * Returns the bucket used in this event * * @return Item */ public function getBucket() : Item{ return $this->bucket; } /** * Returns the item in hand after the event * * @return Item */ public function getItem() : Item{ return $this->item; } /** * @param Item $item */ public function setItem(Item $item) : void{ $this->item = $item; } /** * @return Block */ public function getBlockClicked() : Block{ return $this->blockClicked; } /** * @return int */ public function getBlockFace() : int{ return $this->blockFace; } }