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;
/** @var ItemEntity */
private $item;
private $itemEntity;
public function __construct(Inventory $inventory, ItemEntity $item){
$this->item = $item;
public function __construct(Inventory $inventory, ItemEntity $itemEntity){
$this->itemEntity = $itemEntity;
parent::__construct($inventory);
}
public function getItem() : ItemEntity{
return $this->item;
public function getItemEntity() : ItemEntity{
return $this->itemEntity;
}
}