DestroyItemAction
Extends InventoryAction
This action type shows up when a creative player puts an item into the creative inventory menu to destroy it. The output is the item destroyed. You can think of this action type like setting an item into /dev/null
Methods
__construct()
php
public function __construct(\pocketmine\item\Item $targetItem)execute()
php
public function execute(\pocketmine\player\Player $source) : voidvalidate()
php
public function validate(\pocketmine\player\Player $source) : void