◆ __construct()
- Parameters
-
Player | $who | |
Block | $blockClicked | |
int | $blockFace | |
Item | $bucket | |
Item | $itemInHand | |
49 $this->blockClicked = $blockClicked;
50 $this->blockFace = (int) $blockFace;
51 $this->item = $itemInHand;
52 $this->bucket = $bucket;
◆ getBlockClicked()
- Returns
- Block
84 return $this->blockClicked;
◆ getBlockFace()
- Returns
- int
91 return $this->blockFace;
◆ getBucket()
Returns the bucket used in this event
- Returns
- Item
◆ getItem()
Returns the item in hand after the event
- Returns
- Item
◆ setItem()
The documentation for this class was generated from the following file:
- src/pocketmine/event/player/PlayerBucketEvent.php