Skip to content

ItemMergeEvent ​

class · pocketmine\event\entity\ItemMergeEvent · source

Extends EntityEvent
Implements Cancellable

Called when an item entity tries to merge into another item entity.

Properties ​

$target ​

php
public \pocketmine\entity\object\ItemEntity $target

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\object\ItemEntity $entity, \pocketmine\entity\object\ItemEntity $target)

getTarget() ​

php
public function getTarget() : \pocketmine\entity\object\ItemEntity

Returns the merge destination.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.