631 Commits

Author SHA1 Message Date
David Vierra
5854fb4494 re-saving Indev .mclevels works again 2011-02-04 13:02:48 -10:00
David Vierra
4678ba3996 return an iterator over our chunk set instead of returning the set itself 2011-02-04 13:02:36 -10:00
David Vierra
2409f9af56 fixed fallback method for detecting save folder on Windows (is the COM method even needed??) 2011-02-04 13:02:19 -10:00
David Vierra
18a5d5fe93 fleshed out intro documentation to explain that block access is slow and how to get around it
also clarified data type of allChunks
2011-02-04 13:01:53 -10:00
David Vierra
86da5aa593 Changed several materials to have official names. 2011-01-30 17:53:29 -10:00
David Vierra
61cd4b3713 remove cruft 2011-01-27 14:46:55 -10:00
David Vierra
19f6853784 make sure to apply the new blockData to self when copying and converting from any format 2011-01-16 18:13:09 -10:00
David Vierra
e1b4242115 fixed tile entity positioning when flipping N/S and E/W 2011-01-15 20:16:18 -10:00
David Vierra
242944ba4c added crappy textures for cake 2011-01-15 20:15:54 -10:00
David Vierra
d6a2d09c1c changed alpha metal block textures, reverted classic ones 2011-01-15 18:31:37 -10:00
David Vierra
b49d13e8d6 gold, iron, and diamond blocks now show the same tex on all sides 2011-01-15 17:37:50 -10:00
David Vierra
bf77b28635 changed block conversion to use the function convertBlocksFromLevel
this function will attempt conversion of classic colors to the new ones added in beta 1.2, but there are a few inexact matches...
2011-01-15 08:49:31 -10:00
David Vierra
0059b01399 added functions to flip levels and schematics north/south and east/west 2011-01-15 08:47:30 -10:00
David Vierra
e44cfc039f added rotation mapping for Dispenser 2011-01-13 21:34:13 -10:00
David Vierra
45abd41fed added new material names and textures for jan 13 patch 2011-01-13 21:33:52 -10:00
David Vierra
e6306edef9 discard high bits when reading schematics xxx probably appropriate elsewhere 2011-01-13 19:27:52 -10:00
David Vierra
268a09ab70 moved getChunkSlices, getAllChunkSlices up to MCLevel so all level types can use the algorithm 2011-01-11 01:29:52 -10:00
David Vierra
c1125f6b56 LastUpdate is now a TAG_Long 2011-01-06 17:02:12 -10:00
David Vierra
67c3a7f86d added regression test for heightmap 2011-01-06 17:02:04 -10:00
David Vierra
983597df7f only prompt when stdin is a tty 2011-01-05 19:33:05 -10:00
David Vierra
2d819ede6a update test checksum after changing some block names 2011-01-05 00:52:38 -10:00
David Vierra
02f93d5bd7 unicode filenames :\ 2011-01-02 17:40:25 -10:00
David Vierra
af02f6b352 changed leaves to fast leaf texture 2011-01-02 01:01:13 -10:00
David Vierra
964c52cc2d fixed a goof in heightMapAt 2010-12-29 03:47:38 -10:00
David Vierra
83c75757f6 blocksForChunk, lightsForChunk, skyLightForChunk, dataForChunk, heightMapForChunk removed. use the corresponding chunk attributes instead 2010-12-27 13:23:10 -10:00
David Vierra
40fe19f663 fixed axis swap goof in heightmap command 2010-12-26 14:23:09 -10:00
David Vierra
a98f59b636 rewrote block rotation in terms of a giant lookup table 2010-12-23 18:26:36 -10:00
David Vierra
df1b8b93c2 paintings now rotate correctly 2010-12-22 14:24:59 -10:00
David Vierra
e76c5a7f5e random comment 2010-12-22 13:23:09 -10:00
David Vierra
70e29c4a7d added compress method for MCInfdevOldLevel that just compresses all chunks 2010-12-22 12:39:05 -10:00
David Vierra
ea035361b0 added dummy methods and documentation to MCLevel 2010-12-22 12:38:50 -10:00
David Vierra
7e6db87ae1 renamed a block - ugh need to redo materials 2010-12-21 18:31:43 -10:00
David Vierra
aebd1ffa64 renamed Rock and Adminium 2010-12-20 16:28:37 -10:00
David Vierra
bc5e27cb4a accessing TerrainPopulated now correctly decompresses the chunk 2010-12-20 09:57:34 -10:00
David Vierra
37fe10d4ad added the word "half" to the name of half steps 2010-12-20 09:57:16 -10:00
David Vierra
a765ef586a added func to get the union of two BoundingBox 2010-12-20 09:57:00 -10:00
David Vierra
5ea13d6219 heightmap code now handles larger images 2010-12-17 13:37:15 -10:00
David Vierra
bf1557c40b when extracting a schematic from partly outside the bounds, create the schematic at the requested size instead of the adjusted size 2010-12-17 08:24:21 -10:00
David Vierra
d4d180f9b7 finite-size fillBlocks checks its input box so it won't wrap around the edge of the level or try to use null slices 2010-12-17 08:22:53 -10:00
David Vierra
475d525c75 added bounding box intersection func, to find the intersecting region of two boxes 2010-12-17 08:21:59 -10:00
David Vierra
ec2c3c4a1d change dtype of tex coords array xxx this stuff shouldn't even be here 2010-12-16 10:06:03 -10:00
David Vierra
eae3ee5947 allow fake chunks to have Data, too 2010-12-14 16:00:46 -10:00
David Vierra
8a263598cb added removeTileEntitiesInBox 2010-12-13 09:36:53 -10:00
David Vierra
b07c705ed9 add convenience method to dirty every chunk in a box 2010-12-07 23:06:40 -10:00
David Vierra
be3fdce0a7 one-block setters will mark the chunk for saving but not lighting 2010-12-07 23:06:15 -10:00
David Vierra
0d03e7bbf5 processCommand now handles comments and empty lines, and accepts a string as param instead of an array of words 2010-12-07 22:42:54 -10:00
David Vierra
73815c8e74 allow blank lines and comments starting with # 2010-12-06 15:39:31 -10:00
David Vierra
08e5fe189a use containsChunk instead of testing _loadedChunks 2010-12-06 15:30:35 -10:00
David Vierra
ada922c3b6 avoid a unicode error when formatting the world name into this string 2010-12-06 15:30:22 -10:00
David Vierra
4a077f65b3 check both compressed and decompressed tags to see if the chunk is loaded 2010-12-04 07:00:29 -10:00