◆ __construct()
__construct |
( |
Player |
$player, |
|
|
Block |
$block, |
|
|
Item |
$item, |
|
|
|
$instaBreak = false |
|
) |
| |
BlockBreakEvent constructor.
- Parameters
-
Player | $player | |
Block | $block | |
Item | $item | |
bool | $instaBreak | |
56 if($drops != null && is_numeric($drops[0]))
57 $this->blockDrops[] =
Item::get($drops[0], $drops[1], $drops[2]);
59 foreach($drops as $i){
60 $this->blockDrops[] =
Item::get($i[0], $i[1], $i[2]);
◆ getDrops()
◆ getInstaBreak()
◆ getItem()
◆ getPlayer()
◆ setDrops()
- Parameters
-
96 $this->blockDrops = $drops;
◆ setInstaBreak()
setInstaBreak |
( |
|
$instaBreak | ) |
|
◆ $blockDrops
◆ $handlerList
◆ $instaBreak
◆ $item
◆ $player
The documentation for this class was generated from the following file:
- src/pocketmine/event/block/BlockBreakEvent.php