PHP Class pocketmine\event\player\PlayerBucketEvent

Inheritance: extends PlayerEvent, implements pocketmine\event\Cancellable
Datei anzeigen Open project: iTXTech/Genisys Class Usage Examples

Public Methods

Method Description
__construct ( Player $who, Block $blockClicked, integer $blockFace, Item $bucket, Item $itemInHand )
getBlockClicked ( ) : Block
getBlockFace ( ) : integer
getBucket ( ) : Item Returns the bucket used in this event
getItem ( ) : Item Returns the item in hand after the event
setItem ( Item $item )

Method Details

__construct() public method

public __construct ( Player $who, Block $blockClicked, integer $blockFace, Item $bucket, Item $itemInHand )
$who pocketmine\Player
$blockClicked pocketmine\block\Block
$blockFace integer
$bucket pocketmine\item\Item
$itemInHand pocketmine\item\Item

getBlockClicked() public method

public getBlockClicked ( ) : Block
return pocketmine\block\Block

getBlockFace() public method

public getBlockFace ( ) : integer
return integer

getBucket() public method

Returns the bucket used in this event
public getBucket ( ) : Item
return pocketmine\item\Item

getItem() public method

Returns the item in hand after the event
public getItem ( ) : Item
return pocketmine\item\Item

setItem() public method

public setItem ( Item $item )
$item pocketmine\item\Item