Skip to content

PlayerBlockPickEvent ​

class · pocketmine\event\player\PlayerBlockPickEvent · source

Extends PlayerEvent
Implements Cancellable

Called when a player middle-clicks on a block to get an item in creative mode.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\player\Player $player, \pocketmine\block\Block $blockClicked, \pocketmine\item\Item $resultItem)

getBlock() ​

php
public function getBlock() : \pocketmine\block\Block

getResultItem() ​

php
public function getResultItem() : \pocketmine\item\Item

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