asPosition()); } public function getNetworkType() : int{ return WindowTypes::ENCHANTMENT; } public function getName() : string{ return "Enchantment Table"; } public function getDefaultSize() : int{ return 2; //1 input, 1 lapis } /** * This override is here for documentation and code completion purposes only. * @return Position */ public function getHolder(){ return $this->holder; } public function onClose(Player $who) : void{ parent::onClose($who); $this->dropContents($this->holder->getLevel(), $this->holder->add(0.5, 0.5, 0.5)); } }