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