| Constructor and Description |
|---|
EntityVisitor(Iterator<? extends Entity> iterator,
EntityFunction function)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Abort the current task.
|
int |
getAffected()
Get the number of affected objects.
|
Operation |
resume(RunContext run)
Complete the next step.
|
public EntityVisitor(Iterator<? extends Entity> iterator, EntityFunction function)
iterator - the iteratorfunction - the functionpublic int getAffected()
public Operation resume(RunContext run) throws WorldEditException
Operationresume in interface Operationrun - describes information about the current runWorldEditException - an errorpublic void cancel()
OperationOperation.resume(RunContext) should not be called at any point in the
future. This method should not be called after successful completion of
the operation. This method must be called if the operation is
interrupted before completion.Copyright © 2010-2014. All Rights Reserved.