InventoryPickupItemEvent: rename item to itemEntity (#4007)

This commit is contained in:
SalmonDE 2021-01-20 22:09:59 +01:00 committed by GitHub
parent 487b5dd11d
commit 3fb4b30742
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,14 +32,14 @@ class InventoryPickupItemEvent extends InventoryEvent implements Cancellable{
use CancellableTrait; use CancellableTrait;
/** @var ItemEntity */ /** @var ItemEntity */
private $item; private $itemEntity;
public function __construct(Inventory $inventory, ItemEntity $item){ public function __construct(Inventory $inventory, ItemEntity $itemEntity){
$this->item = $item; $this->itemEntity = $itemEntity;
parent::__construct($inventory); parent::__construct($inventory);
} }
public function getItem() : ItemEntity{ public function getItemEntity() : ItemEntity{
return $this->item; return $this->itemEntity;
} }
} }