public class ClearEntities
extends java.lang.Object
ClearEntitiesEndEvent
Modifier and Type | Field and Description |
---|---|
org.bukkit.Location |
max |
org.bukkit.Location |
min |
Constructor and Description |
---|
ClearEntities(org.bukkit.Location min,
org.bukkit.Location max,
java.util.List<org.bukkit.entity.EntityType> allowedEntities,
boolean quick)
The constructor for the ClearEntities class, used to clear entities in a
region.
|
Modifier and Type | Method and Description |
---|---|
long |
getStartClearTime() |
boolean |
isDone() |
ClearEntities |
progressiveClearEntities()
Starts the clear entities operation.
|
public ClearEntities(org.bukkit.Location min, org.bukkit.Location max, java.util.List<org.bukkit.entity.EntityType> allowedEntities, boolean quick) throws java.lang.IllegalArgumentException
min
- The min X, Y, and Z of the region.max
- The min X, Y, and Z of the region.allowedEntities
- A lof of the entities that won't get cleared. Null for
default.quick
- If the clear will be quick. A quick clear only clears
loaded chunks in the region.java.lang.IllegalArgumentException
- If the worlds are not the same.public final ClearEntities progressiveClearEntities()
public long getStartClearTime()
public boolean isDone()