CreateItemAction
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) : voidvalidate()
php
public function validate(\pocketmine\player\Player $source) : void