public function __construct(FullChunk $chunk, Compound $nbt) { parent::__construct($chunk, $nbt); $this->inventory = new BrewingInventory($this); if (!isset($this->namedtag->Items) or !$this->namedtag->Items instanceof Enum) { $this->namedtag->Items = new Enum("Items", []); $this->namedtag->Items->setTagType(NBT::TAG_Compound); } for ($i = 0; $i < $this->getSize(); ++$i) { $this->inventory->setItem($i, $this->getItem($i)); } }
public function __construct(FullChunk $chunk, Compound $nbt) { parent::__construct($chunk, $nbt); $this->spawnToAll(); }