Skip to content

PlayerBucketEvent ​

abstract class · pocketmine\event\player\PlayerBucketEvent · source

Extends PlayerEvent
Implements Cancellable

Methods ​

__construct() ​

php
public function __construct(\pocketmine\player\Player $who, \pocketmine\block\Block $blockClicked, int $blockFace, \pocketmine\item\Item $bucket, \pocketmine\item\Item $itemInHand)

getBlockClicked() ​

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

getBlockFace() ​

php
public function getBlockFace() : int

getBucket() ​

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

Returns the bucket used in this event

getItem() ​

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

Returns the item in hand after the event

setItem() ​

php
public function setItem(\pocketmine\item\Item $item) : void

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