PocketMine
PlayerBucketEvent Class Reference
Inheritance diagram for PlayerBucketEvent:
PlayerEvent Cancellable Event PlayerBucketEmptyEvent PlayerBucketFillEvent

Public Member Functions

 __construct (Player $who, Block $blockClicked, $blockFace, Item $bucket, Item $itemInHand)
 
 getBucket ()
 
 getItem ()
 
 setItem (Item $item)
 
 getBlockClicked ()
 
 getBlockFace ()
 
- Public Member Functions inherited from PlayerEvent
 getPlayer ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 
- Public Member Functions inherited from Cancellable
 isCancelled ()
 
 setCancelled ($value=true)
 

Additional Inherited Members

- Protected Attributes inherited from PlayerEvent
 $player
 
- Protected Attributes inherited from Event
 $eventName = null
 

Constructor & Destructor Documentation

__construct ( Player  $who,
Block  $blockClicked,
  $blockFace,
Item  $bucket,
Item  $itemInHand 
)
Parameters
Player$who
Block$blockClicked
int$blockFace
Item$bucket
Item$itemInHand

Member Function Documentation

getBlockClicked ( )
Returns
Block
getBlockFace ( )
Returns
int
getBucket ( )

Returns the bucket used in this event

Returns
Item
getItem ( )

Returns the item in hand after the event

Returns
Item
setItem ( Item  $item)
Parameters
Item$item

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