public function setGenerated($value = 1) { $this->nbt->TerrainGenerated = new ByteTag("TerrainGenerated", (int) $value); $this->hasChanged = true; }