mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
InventoryPickupItemEvent: rename item to itemEntity (#4007)
This commit is contained in:
parent
487b5dd11d
commit
3fb4b30742
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user