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

Public Member Functions

 __construct (Player $player, Block $block, Item $item, $instaBreak=false)
 
 getPlayer ()
 
 getItem ()
 
 getInstaBreak ()
 
 getDrops ()
 
 setDrops (array $drops)
 
 setInstaBreak ($instaBreak)
 
- 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
 
 $instaBreak = false
 
 $blockDrops = []
 
- Protected Attributes inherited from BlockEvent
 $block
 
- Protected Attributes inherited from Event
 $eventName = null
 

Member Function Documentation

getDrops ( )
Returns
Item[]
setDrops ( array  $drops)
Parameters
Item[]$drops
setInstaBreak (   $instaBreak)
Parameters
boolean$instaBreak

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