84 $this->facing = $player->getHorizontalFacing();
87 $this->inWall = $this->checkInWall();
89 return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);
101 $this->open = !$this->open;
102 if($this->open && $player !==
null){
103 $playerFacing = $player->getHorizontalFacing();
104 if($playerFacing === Facing::opposite($this->facing)){
105 $this->facing = $playerFacing;
109 $world = $this->position->getWorld();
110 $world->setBlock($this->position, $this);
111 $world->addSound($this->position,
new DoorSound());