Added /remove command to remove entities (paintings, items, minecarts, boats, arrows, and primed TNT).
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user