def testExport(): level = alpha_test_level() for size in [(15, 15, 15), (16, 16, 16), (15, 16, 16), (15, 16, 15), ]: schem = extractSchematicFrom(level, BoundingBox((0, 0, 0), size)) schem = TempLevel("schem", createFunc=lambda f: schem.saveToFile(f)) assert (schem.Blocks > 255).any()
def testExport(): level = alpha_test_level() for size in [ (15, 15, 15), (16, 16, 16), (15, 16, 16), (15, 16, 15), ]: schem = extractSchematicFrom(level, BoundingBox((0, 0, 0), size)) schem = TempLevel("schem", createFunc=lambda f: schem.saveToFile(f)) assert (schem.Blocks > 255).any()
def test_extid_extract(tmpdir, extid_pc_world): for size in [(15, 15, 15), (16, 16, 16), (15, 16, 16), (15, 16, 15), ]: schem = extractSchematicFrom(extid_pc_world.getDimension(), BoundingBox((0, 0, 0), size)) filename = tmpdir.join("extid_extract_%s_%s_%s" % size).strpath schem.saveToFile(filename) del schem schem = WorldEditor(filename) assert (schem.adapter.Blocks > 255).any()
def test_extid_extract(tmpdir, extid_pc_world): for size in [ (15, 15, 15), (16, 16, 16), (15, 16, 16), (15, 16, 15), ]: schem = extractSchematicFrom(extid_pc_world.getDimension(), BoundingBox((0, 0, 0), size)) filename = tmpdir.join("extid_extract_%s_%s_%s" % size).strpath schem.saveToFile(filename) del schem schem = WorldEditor(filename) assert (schem.adapter.Blocks > 255).any()
def testExportImport(any_world): dim = any_world.getDimension() schem = extractSchematicFrom(dim, dim.bounds) schemDim = schem.getDimension() dim.copyBlocks(schemDim, schemDim.bounds, (0, 0, 0))
def testExportImport(world): dim = world.getDimension() schem = extractSchematicFrom(dim, dim.bounds) schemDim = schem.getDimension() dim.copyBlocks(schemDim, schemDim.bounds, (0, 0, 0))
def timeExport(): global schem schem = extractSchematicFrom(level, level.bounds)