8 Commits

Author SHA1 Message Date
David Vierra
2725e1e94f Added: Biomes are now exported into schematic files.
Biomes array is indexed z, x

When importing, biomes are only copied on request.
2013-01-11 17:38:06 -10:00
David Vierra
a840df700a Fixed: ValueError in chunk copy when selection is chunk aligned but offset from destination level 2013-01-08 23:06:30 -10:00
David Vierra
b824cfbfaf Increase block limit to 4096. Change Schematic format slightly to store extended blockIDs.
InfdevOldWorld now allocates Blocks as a 16-bit array and reads Add into the top 8 bits if present. MCSchematic also allocates Blocks as uint16 and uses WorldEdit's extension to the schematic format to store the Add arrays.

Conflicts:
	test/extended_id_test.py
2013-01-08 11:27:59 -10:00
David Vierra
613d7b3ef5 Cleanup: Rewrite adjustCopyParameters in terms of BoundingBox intersection. 2012-11-14 00:24:35 -10:00
David Vierra
4569227304 Fixed: Bug in copyBlocks where entities and tile entities would be copied multiple times. 2012-11-07 00:36:38 -10:00
David Vierra
07c8024121 BoundingBox: Made BoundingBox immutable and added immutable Vector class
Vectors can be added, subtracted, or multiplied.
This change can avoid some errors where a box is modified while being used.
2012-11-01 00:21:01 -10:00
David Vierra
a7fd3ed3ca Refactor: Move copyEntitiesFrom logic into copyBlocksFrom and remove "copyEntitiesFromFinite" implementation.
copyBlocksFrom now copies everything in a single pass instead of doing the entities in a second pass through every chunk.
2012-10-31 02:04:04 -10:00
David Vierra
f36634b6e4 Refactor: Move copyBlocksFrom and supporting methods to its own file and simplify them.
Add a function to ChunkBase for getting the slices for a chunk's arrays and the area of the chunk bounded by a given BoundingBox
Remove copyBlocksFromFinite and use copyBlocksFromInfinite as the default implementation
Rewrite copyBlocksFrom to use chunk.getChunkSlicesForBox instead of world.getChunkSlices
2012-10-30 17:05:11 -10:00