pocketmine\event\entity\EntityArmorChangeEvent::__construct PHP Method

__construct() public method

public __construct ( Entity $entity, Item $oldItem, Item $newItem, $slot )
$entity pocketmine\entity\Entity
$oldItem pocketmine\item\Item
$newItem pocketmine\item\Item
    public function __construct(Entity $entity, Item $oldItem, Item $newItem, $slot)
    {
        $this->entity = $entity;
        $this->oldItem = $oldItem;
        $this->newItem = $newItem;
        $this->slot = (int) $slot;
    }