Added /remove command to remove entities (paintings, items, minecarts, boats, arrows, and primed TNT).

This commit is contained in:
sk89q
2011-02-18 20:31:49 -08:00
parent a6042e76f9
commit 1fe6f09066
4 changed files with 148 additions and 2 deletions

View File

@@ -29,6 +29,18 @@ import com.sk89q.worldedit.blocks.BaseItemStack;
* @author sk89q
*/
public abstract class LocalWorld {
/**
* List of removable entity types.
*/
public enum EntityType {
ARROWS,
ITEMS,
PAINTINGS,
BOATS,
MINECARTS,
TNT,
}
/**
* Random generator.
*/
@@ -298,6 +310,16 @@ public abstract class LocalWorld {
*/
public abstract int killMobs(Vector origin, int radius);
/**
* Remove entities in an area.
*
* @param type
* @param origin
* @param radius
* @return
*/
public abstract int removeEntities(EntityType type, Vector origin, int radius);
/**
* Compare if the other world is equal.
*