39 parent::__construct($world, $pos);
43 public function readSaveData(
CompoundTag $nbt) :
void{
44 $this->loadName($nbt);
45 $this->loadItems($nbt);
49 $this->saveName($nbt);
50 $this->saveItems($nbt);
53 public function close() : void{
55 $this->inventory->removeAllWindows();
60 public function getInventory() : Inventory{
61 return $this->inventory;
64 public function getRealInventory() : Inventory{
65 return $this->inventory;
68 public function getDefaultName() : string{