Commit Graph

24 Commits

Author SHA1 Message Date
sk89q
3ad5c9016a Added CuboidRegion.fromCenter(). 2014-03-30 14:09:50 -07:00
sk89q
6c1ff02df5 Add getFaces() and addWalls() to CuboidRegion. 2014-03-28 00:39:39 -07:00
sk89q
09ca5c3131 Cleaned up Javadocs for CuboidRegion; added preconditions. 2014-03-28 00:16:24 -07:00
sk89q
d9ad0014f0 Made CuboidRegion(world, ...) constructor clamp to world. 2014-03-27 20:54:35 -07:00
sk89q
9627d830d7 Added CuboidRegion.makeCuboid(Region). 2014-02-28 16:15:14 -08:00
TomyLobo
22798f49c8 Reduced some code duplication in the regions. 2013-08-06 11:50:34 -04:00
aumgn
d2a72579ae Fix typos in CuboidRegion minimum/maximumY methods 2012-04-22 08:29:49 +02:00
aumgn
a7b49ff793 Add minimum/maximumY to FlatRegion and fix a typo in Polygonal2DRegion 2012-04-16 08:45:53 +02:00
aumgn
842c469285 Make regions Cloneable 2012-03-31 09:04:54 -07:00
zml2008
03f7d4ecfb Added getChunkCubes() to Region to get 16^3 chunks a region overlaps with 2012-03-29 21:14:45 -07:00
aumgn
a23e9b857f Add FlatRegion interface and an associated iterator 2012-03-17 09:26:05 +01:00
aumgn
8506bb437e Deprecate expand/contract(Vector) in favor of varargs versions
This keeps things simpler by not dealing with redundant implementations
for single change and multiple changes.
This also let regions handle related changes in a more efficient way
(for example recalculates region components only when needed).
2012-03-15 08:31:39 +01:00
zml2008
373e4b90c9 Clean up some stray 128 values and update the defaults 2012-03-01 20:47:19 -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
TomyLobo
3a828c9759 Added Region.shift
- Provided a default implementation using expand+contract in AbstractRegion
- Overrid the implementation in the subtypes
2012-01-03 17:40:36 +01:00
TomyLobo
4d708a5003 Extracted an AbstractRegion class with some common functionality of all the region types. 2012-01-03 16:35:19 +01:00
TomyLobo
caeab76abb Fixed a NullPointerException in conjunction with CraftBook.
Thanks FearThe1337.
2011-12-14 10:51:02 +01:00
zml2008
98216e2762 Added support for non-128 worldheights 2011-12-13 04:50:53 +01:00
TomyLobo
7e13b60a51 Cleanup 2011-11-23 04:48:40 +01:00
Wizjany
f90e47da9a Removed trailing whitespaces. 2011-09-24 15:32:03 -04:00
Wizjany
da6e6da024 Cleanup. Added toString override for polygonal regions. 2011-08-24 18:27:18 -04:00
TomyLobo
6f79df8398 Added to toString() method to CuboidRegion. 2011-08-08 14:39:16 +02:00
Jacob Scott
66dcc99809 fixed superpickaxe for gravel & lightstone, preprocessors faster than postprocessors, added methods so same-type changes are visble client-side, fixed fixliquid & setblocks block count 2011-07-15 02:00:48 -05:00
sk89q
582b98dad0 More file moving. 2011-05-01 01:30:33 -07:00