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.
This commit is contained in:
sk89q
2014-04-05 02:59:38 -07:00
parent 63a2ca824d
commit 24f8fbc92a
49 changed files with 827 additions and 232 deletions

View File

@ -30,6 +30,7 @@ import com.sk89q.worldedit.LocalWorld;
import com.sk89q.worldedit.Vector;
import com.sk89q.worldedit.regions.polyhedron.Edge;
import com.sk89q.worldedit.regions.polyhedron.Triangle;
import com.sk89q.worldedit.world.World;
public class ConvexPolyhedralRegion extends AbstractRegion {
/**
@ -72,6 +73,11 @@ public class ConvexPolyhedralRegion extends AbstractRegion {
*
* @param world
*/
public ConvexPolyhedralRegion(World world) {
super(world);
}
@Deprecated
public ConvexPolyhedralRegion(LocalWorld world) {
super(world);
}
@ -79,7 +85,7 @@ public class ConvexPolyhedralRegion extends AbstractRegion {
/**
* Constructs an independent copy of the given region.
*
* @param world
* @param region the region to copy
*/
public ConvexPolyhedralRegion(ConvexPolyhedralRegion region) {
this(region.world);