Commit Graph

82 Commits

Author SHA1 Message Date
TomyLobo
aebaa921fd Fixed some general silliness. 2013-10-17 11:03:26 +02:00
TomyLobo
8badb09399 Added query{,Abs,Rel}(x,y,z,typevar,datavar) to the expression parser. 2013-09-21 19:44:56 +02:00
TomyLobo
eacd147694 Optimized EditSession.countBlocks.
Also fixed the questionable semantics for that anonymous class' "contains" method.
2013-08-16 08:18:37 +02:00
TomyLobo
c1396a2468 Added EditSession.moveRegion. 2013-08-04 01:34:54 +02:00
wizjany
1af61f827b Fix block setting while not in fast mode 2013-03-17 21:38:13 -04:00
Wizjany
9bb7968358 Make forest and pumpkin gens respect toggleplace. Make pumpkin gen have random faces. 2013-01-27 03:03:05 -05:00
OdiumxXx
0f77cb357b Fixed ContainerBlocks spilling items when edited.
Fixed ContainerBlocks spilling items when edited, which caused an Item Duplication Exploit.

http://youtrack.sk89q.com/issue/WORLDEDIT-2381 - [Now Resolved]
2013-01-19 09:41:04 -05:00
Wizjany
d78bbc4f68 Merge Moo0's data flag for distr.
Also added data flag to //count.
  //count -d 35 will now only search for white wool.
  //count 35:5 will only search for green wool.
  //count 35 will work as normal.
  //count 35:-1 will also work.
2013-01-19 09:31:00 -05:00
Wizjany
e09a0c64ad Add amount of missing blocks to message when using inventory. 2012-12-29 14:56:10 -05:00
Wizjany
e728445383 Prevent //snow from placing snow on some blocks that it shouldn't. 2012-12-25 18:42:20 -05:00
aumgn
7fd5d1b61c Add /center commmand 2012-08-29 11:51:57 +02:00
sk89q
39d451438f Changed EditSession.rawSetBlock() to call setBlock() on World. 2012-08-24 13:38:00 -07:00
sk89q
48af65cac3 Updated foundation classes a bit and added raw access for NBT. This release marks experimental support for custom blocks, and nearly all future Minecraft blocks, and is also the beginning of the gradual transition to the new foundation classes as a replacement of the current BaseBlock, etc. classes. 2012-08-23 16:52:37 -07:00
zml2008
b6d1146427 Added support for new tree types to TreeGenerator and make adding more tree types later easier 2012-03-17 15:28:49 -07:00
zml2008
9f1cc0674d Fixed EditSession.makeCylinder's mimimum height check 2012-02-11 15:27:46 -08:00
zml2008
1f921779fa Fixed the replaceBlocks that takes a Pattern too. Closes #1083. 2012-02-07 17:14:14 -08:00
TomyLobo
ea4ee34810 Fixed north face not being set with non-singleblockpatterns. 2012-02-07 00:37:52 +01:00
sk89q
09f3364d9f Moved the block data check to LocalWorld, adding preliminary support for custom blocks.
All unknown blocks are now assumed to carry data, and so this will also future proof WorldEdit (for the immediate future). However, be aware that full custom block support requires carrying TileEntity data (and perhaps other data) and that is not yet supported.
2012-02-05 17:47:09 -08:00
zml2008
4bb5b56da8 Correctly check for null values in EditSession.replaceBlocks() 2012-02-05 16:26:19 -08:00
zml2008
0bea058328 Fixed //replace. Closes #1069 2012-02-04 15:23:08 -08:00
TomyLobo
d2c64e9304 BaseBlock changes
- Changed up EditSession.replaceBlocks to make BaseBlock.inIterable unnecessary.
- Returned BaseBlock.inIterable to its old state and deprecated it.
- Renamed the old BaseBlock.equals to equalsFuzzy, changed the parameter type and took the casts and type checks out.
- Made a new BaseBlock.equals that is consistent with the rules java prescribes.
2012-01-31 16:57:40 +01:00
zml2008
9830d9d326 Revert "Using trove collections for most internal stuff, using array access in BlockType and ItemType"
This reverts commit 410ac65c6a.
This has been causing compatibility issues with Spout. I haven't been ble to reproduce, but until somebody figures out why, this gets to go
2012-01-22 19:04:56 -08:00
TomyLobo
8aa65fd7f4 License block changes
Added some missing license blocks
Added "and contributors" to all copyright notices.
Added $Id$ to files that were still missing it.
Changed "All rights reserved" to GPLv3 on Injector.java.
2012-01-20 08:24:32 +01:00
zml2008
410ac65c6a Using trove collections for most internal stuff, using array access in BlockType and ItemType 2012-01-16 19:27:18 -08:00
TomyLobo
09a92fa76c Added a block/pattern parameter to //hollow.
Also made a few variables final and optimized the thickness algo a bit.
2011-12-20 12:53:26 +01:00
TomyLobo
633f6643a5 Added a thickness parameter to //hollow. 2011-12-19 11:58:38 +01:00
zml2008
98216e2762 Added support for non-128 worldheights 2011-12-13 04:50:53 +01:00
TomyLobo
3dabcdacd1 Made /green break on liquids. 2011-12-10 12:16:57 +01:00
TomyLobo
2e1087a49a Added a //hollow command, which hollows out the object contained in the selection. 2011-12-08 11:54:49 +01:00
TomyLobo
662e597f1a Moved temporary variable creation from Parser to Expression. 2011-11-30 04:45:48 +01:00
TomyLobo
7e13b60a51 Cleanup 2011-11-23 04:48:40 +01:00
TomyLobo
3ed5841863 The block bag fetch/place mapping is now taken from BlockType.getBlockBagItem. 2011-11-04 16:56:53 +01:00
TomyLobo
ff39121fc8 Begun adding support for data/damage values to the blockbag. 2011-11-03 15:51:23 +01:00
TomyLobo
187896c5ed Made //deform round the results before lookup and fixed some potential issues. 2011-11-02 03:39:02 +01:00
TomyLobo
2edf3559d8 EditSession: Split off a queueFinal, which contains only blocks that can be attached to other attached blocks.
This a speed improvement, since the recursive attachment checker turned out to be quite slow.
2011-11-01 21:58:50 +01:00
TomyLobo
4f1196ce2d Added a //deform command, which deforms a region given an expression that operates on the x/y/z variables. 2011-11-01 15:27:13 +01:00
TomyLobo
a5e5880064 Moved shape generation to EditSession.
Also refactored it to get rid of the 3 different anonymous classes.
2011-11-01 15:27:12 +01:00
TomyLobo
c5c68f481b Moved all command-implementing methods to the bottom of the file. 2011-11-01 14:54:32 +01:00
TomyLobo
6b0f237a46 Removed extra fastLighting flag.
Fast lighting is now used when available.
2011-10-31 03:28:05 +01:00
Wizjany
699807665d Cleanup 2011-10-29 11:57:45 -04:00
TomyLobo
58be9d9be4 Added support for stretched cylinders and brought their profile in line with that of the central layer of a sphere of the same x/z radius. 2011-10-28 20:34:08 +02:00
TomyLobo
318e81886c Removed -q flag from //[h]sphere and the code to back it.
The speed difference between the "flexible" and the "quick" variant is so minor that it doesn't justify the aditional code complexity.
2011-10-28 15:10:14 +02:00
TomyLobo
906b6dd832 Forgot to save... 2011-10-25 23:26:25 +02:00
TomyLobo
4f7e1a6b31 Improved speed greatly by deferring lighting until after all blocks are in place.
This needs CraftBukkit to work.
2011-10-24 13:44:22 +02:00
TomyLobo
ffe5f89afc EditSession.flushQueue(): queueLast is now ordered with attachments in mind. 2011-10-24 04:31:34 +02:00
zml2008
050eef8dc7 Fixed checkLoadedChunk 2011-10-10 02:01:50 -04:00
Wizjany
f90e47da9a Removed trailing whitespaces. 2011-09-24 15:32:03 -04:00
Wizjany
b5b55a2775 Cleanup and a few bugfixes 2011-09-24 15:24:10 -04:00
Wizjany
43809a705d More BlockType cleanup 2011-09-19 00:43:39 -04:00
zml2008
3f369f104a Abstracted type detection of simulateBlockMine into BlockType. 2011-09-17 22:00:14 -07:00