PocketMine
BlockPlaceEvent Class Reference
Inheritance diagram for BlockPlaceEvent:
BlockEvent Cancellable Event

Public Member Functions

 __construct (Player $player, Block $blockPlace, Block $blockReplace, Block $blockAgainst, Item $item)
 
 getPlayer ()
 
 getItem ()
 
 getBlockReplaced ()
 
 getBlockAgainst ()
 
- Public Member Functions inherited from BlockEvent
 __construct (Block $block)
 
 getBlock ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 
- Public Member Functions inherited from Cancellable
 isCancelled ()
 
 setCancelled ($value=true)
 

Static Public Attributes

static $handlerList = null
 

Protected Attributes

 $player
 
 $item
 
 $blockReplace
 
 $blockAgainst
 
- Protected Attributes inherited from BlockEvent
 $block
 
- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Called when a player places a block

Member Function Documentation

getItem ( )

Gets the item in hand

Returns
mixed

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