PHP Class pocketmine\event\block\BlockBreakEvent

Inheritance: extends BlockEvent, implements pocketmine\event\Cancellable
Datei anzeigen Open project: iTXTech/Genisys Class Usage Examples

Public Properties

Property Type Description
$handlerList

Protected Properties

Property Type Description
$blockDrops
$instaBreak boolean
$item pocketmine\item\Item
$player pocketmine\Player

Public Methods

Method Description
__construct ( Player $player, Block $block, Item $item, $instaBreak = false )
getDrops ( ) : Item[]
getInstaBreak ( )
getItem ( )
getPlayer ( )
setDrops ( array $drops )
setInstaBreak ( boolean $instaBreak )

Method Details

__construct() public method

public __construct ( Player $player, Block $block, Item $item, $instaBreak = false )
$player pocketmine\Player
$block pocketmine\block\Block
$item pocketmine\item\Item

getDrops() public method

public getDrops ( ) : Item[]
return pocketmine\item\Item[]

getInstaBreak() public method

public getInstaBreak ( )

getItem() public method

public getItem ( )

getPlayer() public method

public getPlayer ( )

setDrops() public method

public setDrops ( array $drops )
$drops array

setInstaBreak() public method

public setInstaBreak ( boolean $instaBreak )
$instaBreak boolean

Property Details

$blockDrops protected_oe property

protected $blockDrops

$handlerList public_oe static_oe property

public static $handlerList

$instaBreak protected_oe property

protected bool $instaBreak
return boolean

$item protected_oe property

protected Item,pocketmine\item $item
return pocketmine\item\Item

$player protected_oe property

protected Player,pocketmine $player
return pocketmine\Player