34 public function __construct(
37 private Block $centerPointCeilingVariant,
38 private Block $edgePointCeilingVariant,
39 private Block $wallVariant
41 parent::__construct($identifier, $name);
45 if($face !== Facing::DOWN){
46 return $this->tryPlacementTransaction(clone $this->wallVariant, $blockReplace, $blockClicked, $face, $clickVector, $player);
49 $ceilingEdgeTx = $player ===
null || !$player->isSneaking() ?
50 $this->tryPlacementTransaction(clone $this->edgePointCeilingVariant, $blockReplace, $blockClicked, $face, $clickVector, $player) :
52 return $ceilingEdgeTx ?? $this->tryPlacementTransaction(clone $this->centerPointCeilingVariant, $blockReplace, $blockClicked, $face, $clickVector, $player);
57 return $clickedFace ===
Facing::DOWN ? clone $this->centerPointCeilingVariant : clone $this->wallVariant;