DropItemAction
Extends InventoryAction
Represents an action involving dropping an item into the world.
Methods
__construct()
php
public function __construct(\pocketmine\item\Item $targetItem)execute()
php
public function execute(\pocketmine\player\Player $source) : voidDrops the target item in front of the player.
onPreExecute()
php
public function onPreExecute(\pocketmine\player\Player $source) : boolvalidate()
php
public function validate(\pocketmine\player\Player $source) : void