PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\event\player\PlayerBucketFillEvent Class Reference
+ Inheritance diagram for pocketmine\event\player\PlayerBucketFillEvent:
+ Collaboration diagram for pocketmine\event\player\PlayerBucketFillEvent:

Public Member Functions

 __construct (Player $who, Block $blockClicked, $blockFace, Item $bucket, Item $itemInHand)
 
 getBucket ()
 
 getItem ()
 
 setItem (Item $item)
 
 getBlockClicked ()
 
 getPlayer ()
 
 getEventName ()
 
 getHandlers ()
 
 isCancelled ()
 
 setCancelled ($forceCancel=false)
 

Static Public Attributes

static $handlerList = null
 
static $eventPool = []
 
static $nextEvent = 0
 

Protected Attributes

 $player
 
 $eventName = null
 

Detailed Description

Definition at line 28 of file PlayerBucketFillEvent.php.

Member Function Documentation

pocketmine\event\player\PlayerBucketEvent::getBlockClicked ( )
inherited
Returns
Block

Definition at line 83 of file PlayerBucketEvent.php.

pocketmine\event\player\PlayerBucketEvent::getBucket ( )
inherited

Returns the bucket used in this event

Returns
Item

Definition at line 60 of file PlayerBucketEvent.php.

pocketmine\event\Event::getEventName ( )
finalinherited
Returns
string

Definition at line 45 of file Event.php.

References pocketmine\event\Event\$eventName.

Referenced by pocketmine\plugin\PluginManager\callEvent().

+ Here is the caller graph for this function:

pocketmine\event\Event::getHandlers ( )
inherited
Returns
HandlerList

Definition at line 82 of file Event.php.

Referenced by pocketmine\plugin\PluginManager\callEvent().

+ Here is the caller graph for this function:

pocketmine\event\player\PlayerBucketEvent::getItem ( )
inherited

Returns the item in hand after the event

Returns
Item

Definition at line 69 of file PlayerBucketEvent.php.

pocketmine\event\player\PlayerBucketEvent::setItem ( Item  $item)
inherited
Parameters
Item$item

Definition at line 76 of file PlayerBucketEvent.php.

Member Data Documentation

pocketmine\event\Event::$eventName = null
protectedinherited

Any callable event must declare the static variable

public static $handlerList = null; public static $eventPool = []; public static $nextEvent = 0;

Not doing so will deny the proper event initialization

Definition at line 39 of file Event.php.

Referenced by pocketmine\event\Event\getEventName().


The documentation for this class was generated from the following file: