Skip to content

CreateItemAction ​

class · pocketmine\inventory\transaction\action\CreateItemAction · source

Extends InventoryAction

This action is used by creative players to balance transactions involving the creative inventory menu. The source item is the item being created ("taken" from the creative menu).

Methods ​

__construct() ​

php
public function __construct(\pocketmine\item\Item $sourceItem)

execute() ​

php
public function execute(\pocketmine\player\Player $source) : void

validate() ​

php
public function validate(\pocketmine\player\Player $source) : void

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