Skip to content

MultiAnySupportTrait ​

trait · pocketmine\block\utils\MultiAnySupportTrait · source

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) : array

Returns a list of faces that block should already have when placed.

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

place() ​

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

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.