public function __construct(Player $player, Block $block, ItemFrame $itemFrame, Item $item) { $this->player = $player; $this->block = $block; $this->itemFrame = $itemFrame; $this->item = $item; }