Skip to content

DestroyItemAction ​

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

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) : 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.