22declare(strict_types=1);
 
   24namespace pocketmine\block\utils;
 
   33trait StaticSupportTrait{
 
   38    abstract private function canBeSupportedAt(Block $block) : bool;
 
   43    public function canBePlacedAt(Block $blockReplace, Vector3 $clickVector, 
int $face, 
bool $isClickedBlock) : bool{
 
   44        return $this->canBeSupportedAt($blockReplace) && parent::canBePlacedAt($blockReplace, $clickVector, $face, $isClickedBlock);
 
   50    public function onNearbyBlockChange() : void{
 
   51        if(!$this->canBeSupportedAt($this)){
 
   52            $this->position->getWorld()->useBreakOn($this->position);
 
   54            parent::onNearbyBlockChange();