MultiAnySupportTrait
Used by blocks that have multiple support requirements in the area of one solid block, such as covering three sides of a corner. Prevents placement if support isn't available and automatically destroys a block side if it's support is removed.
Methods
getInitialPlaceFaces() protected
php
abstract protected function getInitialPlaceFaces(\pocketmine\block\Block $blockReplace) : arrayReturns a list of faces that block should already have when placed.
onNearbyBlockChange()
php
public function onNearbyBlockChange() : voidplace()
php
public function place(\pocketmine\world\BlockTransaction $tx, \pocketmine\item\Item $item, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null) : bool