34 public function __construct(
39 parent::__construct($viewer, $inventory);
42 public function getHolder() :
Position{
return $this->holder; }
44 public function onOpen() :
void{
46 $block = $this->holder->getWorld()->getBlock($this->holder);
48 $block->onViewerAdded();
52 public function onClose() :
void{
53 $block = $this->holder->getWorld()->getBlock($this->holder);
55 $block->onViewerRemoved();