Skip to content

StaticSupportTrait ​

trait · pocketmine\block\utils\StaticSupportTrait · source

Used by blocks which always have the same support requirements no matter what state they are in. Prevents placement if support isn't available, and automatically destroys itself if support is removed.

Methods ​

canBePlacedAt() ​

php
public function canBePlacedAt(\pocketmine\block\Block $blockReplace, \pocketmine\math\Vector3 $clickVector, int $face, bool $isClickedBlock) : bool

onNearbyBlockChange() ​

php
public function onNearbyBlockChange() : void

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