diff --git a/src/event/block/BlockItemPickupEvent.php b/src/event/block/BlockItemPickupEvent.php new file mode 100644 index 000000000..242840538 --- /dev/null +++ b/src/event/block/BlockItemPickupEvent.php @@ -0,0 +1,60 @@ +origin; + } + + /** + * Items to be received + */ + public function getItem() : Item{ + return clone $this->item; + } + + /** + * Change the items to receive. + */ + public function setItem(Item $item) : void{ + $this->item = clone $item; + } + + /** + * Inventory to which received items will be added. + */ + public function getInventory() : ?Inventory{ + return $this->inventory; + } + + /** + * Change the inventory to which received items are added. + */ + public function setInventory(?Inventory $inventory) : void{ + $this->inventory = $inventory; + } +} \ No newline at end of file