Commit Graph

122 Commits

Author SHA1 Message Date
sk89q
70f409975e Added support for Extent interface. 2014-03-29 21:05:09 -07:00
sk89q
3c5c257a41 Changed ground seeking operations to LayerVisitor. 2014-03-29 18:51:33 -07:00
sk89q
c804aeb03e Make FlatRegionVisitor take FlatRegions only. 2014-03-29 18:34:34 -07:00
sk89q
69f3862c11 Converted //naturalize to visitors. 2014-03-29 18:32:10 -07:00
sk89q
1b6d32ba3a Converted //overlay to visitors. 2014-03-28 16:49:01 -07:00
sk89q
53730bfa20 Moved packages to worldedit.function.*. 2014-03-28 16:15:40 -07:00
sk89q
60b839ed09 Changed how ground finding operations were implemented. 2014-03-28 16:13:27 -07:00
sk89q
fd8ad9b988 Removed messages from EditSession not-null preconditions. 2014-03-28 00:41:00 -07:00
sk89q
f509a3128e Switched //faces and //walls to use visitors. 2014-03-28 00:40:04 -07:00
sk89q
9cd164ae98 Removed mask support from BlockCount.
RegionMaskFilter handles it.
2014-03-27 21:11:02 -07:00
sk89q
a6e979ec6c Moved visitors to com.sk89q.worldedit.visitor. 2014-03-27 21:07:38 -07:00
sk89q
e022804c27 Changed //center to use visitors. 2014-03-27 21:04:07 -07:00
sk89q
570b4ebd93 Made CuboidRegions in EditSession clamp Y to world. 2014-03-27 20:57:20 -07:00
sk89q
5cfc05c616 Converted /removenear, //replace to visitors. 2014-03-27 20:48:36 -07:00
sk89q
b21f944570 Changed /remove[above|below], //set to use visitors. 2014-03-27 19:57:24 -07:00
sk89q
dbb7b085f0 Changed //count, //fill, //fillr to use visitors. 2014-03-27 08:22:18 +01:00
sk89q
7c4a67d32b FlatRegionApplicator -> FlatRegionVisitor. 2014-03-27 08:22:17 +01:00
sk89q
c5fdfa7a0d Made GroundScatterFunction use a NoiseGenerator. 2014-03-01 16:52:36 -08:00
sk89q
d2e93dfe23 Added GardenPatchGenerator, GroundScatterFunction.
/pumpkins now uses the new classes.
2014-03-01 15:46:00 -08:00
sk89q
c87b1acbad Added FlatRegionApplicator for FlatRegionFunctions. 2014-03-01 12:37:18 -08:00
sk89q
504c7a5ff1 Have upperY and lowerY on GroundFindingFunction be set via mutators. 2014-03-01 12:03:10 -08:00
sk89q
bc711d9036 Implemented ForestGenerator that performs the "forestgen" or "//forest" commands. 2014-03-01 02:51:50 -08:00
sk89q
6bfcaca6d3 Added EditSession.forestGen() that takes Iterable<Vector2D>. 2014-02-28 16:14:44 -08:00
TomyLobo
61905527f8 The /green command no longer affects permadirt and podzol.
This behaviour can be overridden with -f.
2013-12-29 18:28:42 +01:00
wizjany
85035a2a24 Allow forest generator to make trees under snow tiles. 2013-12-24 18:53:03 -05:00
TomyLobo
68b8218bea Moved containsFuzzy from EditSession to BaseBlock. 2013-12-03 23:53:44 +01:00
TomyLobo
79bcfd815b Fixed //deform not doing anything at all. 2013-11-30 17:18:53 +01:00
TomyLobo
3fa9a4e309 Attached ascending rails to the block they're ascending towards, in addition to the block below them. 2013-11-17 23:43:38 +01:00
TomyLobo
164601644a //walls on non-cuboid regions no longer introduces gaps in walls beyond 45 degrees (aka slanted roofs :)).
This is a better way to solve #273.
2013-11-03 10:20:49 +01:00
orthoplex64
22d6c51976 Added /curve. 2013-11-01 20:24:09 +01:00
orthoplex64
f4277c126d Hollow lines; modified line-drawing; EditSession utility methods
Made hypot() and getHollowed() static
2013-11-01 20:24:08 +01:00
orthoplex64
f38b6c484c Line thickness support 2013-11-01 20:24:08 +01:00
orthoplex64
91c6c69551 Add //line command and EditSession method
The EditSession method comes with javadoc.
2013-11-01 20:24:07 +01:00
Albert Pham
9930fb7338 Merge pull request #269 from sk89q/generatebiome
Added a //generatebiome command, which uses formulae to generate free-form biomes.
2013-11-01 12:23:27 -07:00
TomyLobo
f7c7292f79 Added a //generatebiome command, which uses formulae to generate free-form biomes.
Shorthands: //genbiome, //gb
2013-11-01 20:09:30 +01:00
TomyLobo
803b4df72e Masks are now checked in setBlock instead of rawSetBlock.
Untested!!!
2013-11-01 20:09:27 +01:00
TomyLobo
961773ce5d Added non-cuboid support for //walls and //outline. 2013-11-01 19:05:49 +01:00
TomyLobo
f27d7e585d Moved ArbitraryShape and WorldEditExpressionEnvironment to a new "shape" package. 2013-10-26 12:33:24 +02:00
TomyLobo
661484f858 Code quality improvements. 2013-10-23 18:54:45 +02:00
TomyLobo
921c354db7 Made everything that uses canPassThrough use data values. 2013-10-17 11:03:55 +02:00
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