rotation = self::getRotationFromYaw($player->getLocation()->getYaw()); } return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player); } private function canBeSupportedAt(Block $block) : bool{ $supportBlock = $block->getSide(Facing::UP); return $supportBlock->getSupportType(Facing::DOWN)->hasCenterSupport() || $supportBlock->hasTypeTag(BlockTypeTags::HANGING_SIGN); } protected function getFacingDegrees() : float{ return $this->rotation * 22.5; } }