PHP Class pocketmine\event\block\BlockPlaceEvent

Inheritance: extends BlockEvent, implements pocketmine\event\Cancellable
Show file Open project: ClearSkyTeam/ClearSky Class Usage Examples

Public Properties

Property Type Description
$handlerList

Protected Properties

Property Type Description
$blockAgainst
$blockReplace
$item pocketmine\item\Item
$player pocketmine\Player

Public Methods

Method Description
__construct ( Player $player, Block $blockPlace, Block $blockReplace, Block $blockAgainst, Item $item )
getBlockAgainst ( )
getBlockReplaced ( )
getItem ( ) : mixed Gets the item in hand
getPlayer ( )

Method Details

__construct() public method

public __construct ( Player $player, Block $blockPlace, Block $blockReplace, Block $blockAgainst, Item $item )
$player pocketmine\Player
$blockPlace pocketmine\block\Block
$blockReplace pocketmine\block\Block
$blockAgainst pocketmine\block\Block
$item pocketmine\item\Item

getBlockAgainst() public method

public getBlockAgainst ( )

getBlockReplaced() public method

public getBlockReplaced ( )

getItem() public method

Gets the item in hand
public getItem ( ) : mixed
return mixed

getPlayer() public method

public getPlayer ( )

Property Details

$blockAgainst protected property

protected $blockAgainst

$blockReplace protected property

protected $blockReplace

$handlerList public static property

public static $handlerList

$item protected property

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

$player protected property

protected Player,pocketmine $player
return pocketmine\Player