Commit Graph

96 Commits

Author SHA1 Message Date
sk89q
41584eee4a Add //sel -d <type> to set a default region selector type. 2014-07-28 20:53:17 -07:00
sk89q
c2a0f590b1 Refactor RegionSelectors so limits are passed in during selection. 2014-07-28 19:50:01 -07:00
sk89q
98e55bede0 Fix checkstyle error due to recent cleanup. 2014-07-27 20:45:57 -07:00
sk89q
e95eeefa2b Code clean up, add preconditions, and correct Javadocs. 2014-07-26 01:29:51 -07:00
sk89q
9c205e0e00 Fix naming errors in ArbitraryBiomeShape caused by biome commit. 2014-07-17 14:50:44 -07:00
sk89q
42be110097 Implemented new biome API. 2014-07-17 00:21:13 -07:00
sk89q
3e34d5ca52 Re-implement /remove and /butcher with the new entity API. 2014-07-15 19:47:47 -07:00
sk89q
97a1664db5 Merge remote-tracking branch 'origin/master' into feature/mapping 2014-07-10 22:33:25 -07:00
sk89q
66a51636a3 Ellipsoid-based region selectors no longer starts primary at (0, 0, 0).
Fixes WORLDEDIT-2968.
2014-07-10 00:47:36 -07:00
sk89q
c5bd8704ea Added TransformRegion to transform another Region. 2014-07-01 13:03:01 -07:00
sk89q
b3f5136a59 Merge pull request #287 2014-05-01 17:52:33 -07:00
sk89q
8d6f5bf335 Improves CUI support.
1. Allows CUI handshake package to overwrite protocol version.
2. Sends the current selection on handshake.
3. Removed redundant SelectionShapeEvents.

Conflicts:
	src/main/java/com/sk89q/worldedit/regions/selector/ConvexPolyhedralRegionSelector.java
	src/main/java/com/sk89q/worldedit/regions/selector/CylinderRegionSelector.java
2014-05-01 17:29:51 -07:00
sk89q
24f8fbc92a Converted API over to use new World.
This breaks backwards compatibility for all getWorld() methods, but
shim methods were added for binary compatibility with method calls that
use LocalWorld.
2014-04-05 03:04:21 -07:00
sk89q
e0fd804f70 Standardized file headers. 2014-04-04 15:23:11 -07:00
sk89q
3294431e00 Added back old region selector classes as deprecated. 2014-04-04 13:57:27 -07:00
sk89q
0ed62b8f90 Moved RegionSelector back to regions package to reduce API breakage. 2014-04-03 19:50:05 -07:00
sk89q
1fd1e7aaf8 Moved RegionSelectors and RegionIterators into subpackages. 2014-04-03 18:32:51 -07:00
sk89q
9d08f266bf Created pattern, mask, and block registries.
Deprecated getBlock, getBlockPattern, and so-on in WorldEdit.
2014-04-03 17:52:53 -07:00
sk89q
469cb8c8b3 (Breaking) Moved some packages around.
Most of the changes should not break *most* WorldEdit-using plugins,
but implementations of WorldEdit are broken by this change.
2014-04-02 19:20:12 -07:00
sk89q
3ad5c9016a Added CuboidRegion.fromCenter(). 2014-03-30 14:09:50 -07:00
sk89q
3c5c257a41 Changed ground seeking operations to LayerVisitor. 2014-03-29 18:51:33 -07:00
sk89q
11068cb69f Added Regions class with utility methods. 2014-03-29 18:30:57 -07:00
sk89q
60b839ed09 Changed how ground finding operations were implemented. 2014-03-28 16:13:27 -07:00
sk89q
6c1ff02df5 Add getFaces() and addWalls() to CuboidRegion. 2014-03-28 00:39:39 -07:00
sk89q
dd244bfe04 Add getFaces() and addWalls() to CuboidRegion. 2014-03-28 00:39:34 -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
ReneZeidler
c47f50696d Fix indentation 2014-02-01 08:25:43 -08:00
ReneZeidler
e70c82c7c0 Don't send SelectionShapeEvent events in the describeCUI/describeLegacyCUI methods, that event is already sent in dispatchCUISelection in LocalSession 2014-02-01 07:23:01 -08:00
Martin
359b8abfe3 ADD: CylinderSelection for worldguard to be able to create regions
MOD: moved polygonize method of CylinderRegion to RegionUtil so it can be
reused later on
2014-01-07 01:44:28 +01:00
TomyLobo
77219a8b3e The Sphere selector can now also shrink the region.
The radius is set to ceil(distanceToCenter).
2013-08-24 10:59:23 +02:00
TomyLobo
60f44be298 Minor polyhedron changes. 2013-08-08 08:28:26 +02:00
TomyLobo
d4a7f7b48a ConvexPolyhedralRegions now preserve the order of their vertices. 2013-08-06 11:50:41 -04:00
TomyLobo
b28fdbfe4e Used vector constants in all appropriate placed. 2013-08-06 11:50:39 -04:00
TomyLobo
731c8a0ce7 Added a ConvexPolyhedralRegion and selector 2013-08-06 11:50:35 -04:00
TomyLobo
22798f49c8 Reduced some code duplication in the regions. 2013-08-06 11:50:34 -04:00
TomyLobo
c838ef7b25 Moved the polygonization code to the specific regions that are being polygonized.
Also, maxPoints no longer has confusing semantics.
2013-08-06 11:50:33 -04:00
TomyLobo
e787013bad Fixed a typo. 2013-08-04 10:12:15 +02:00
TomyLobo
98e466d371 Fixed a typo. 2013-08-03 15:29:33 +02:00
TomyLobo
6f3fbdc963 Removed some debug prints. 2013-07-02 07:30:00 -04:00
TomyLobo
d7837f6121 Added cylinder->polygon conversion. 2013-07-02 07:29:59 -04:00
TomyLobo
5db504aed2 @Deprecated 2 deprecated constructors. 2013-06-22 05:56:02 +02:00
wizjany
ca06489e11 Don't spam chat when a different type of vector is given to the Selector. 2013-05-16 02:02:09 -04:00
Wizjany
3f1a2bfc39 Fix off by one error when calculating Poly2D region dimensions. 2012-12-05 18:32:16 -05:00
aumgn
da400ffdeb Remove deprecated Region#contract/expand(Vector) methods
Those methods hid varargs versions which are not deprecated
2012-11-12 10:36:44 +01:00
aumgn
7fd5d1b61c Add /center commmand 2012-08-29 11:51:57 +02:00
aumgn
77bc49e057 Add convenient constructors in *RegionSelector classes 2012-08-27 20:14:05 +02:00
TomyLobo
afb9052cc9 ExtendingCuboidRegionSelector's ctor now requires a LocalWorld. 2012-07-28 14:49:30 +02:00
sk89q
dc17c8d064 Increased polygonal region point limit to 50. 2012-06-30 17:21:26 -07:00