public class FlatRegionVisitor extends java.lang.Object implements Operation
FlatRegion
.warnedDeprecatedClasses
Constructor and Description |
---|
FlatRegionVisitor(FlatRegion flatRegion,
FlatRegionFunction function)
Create a new visitor.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Abort the current task.
|
int |
getAffected()
Get the number of affected objects.
|
java.lang.Iterable<com.sk89q.worldedit.util.formatting.text.Component> |
getStatusMessages()
Gets an iterable of messages that describe the current status of the
operation.
|
Operation |
resume(RunContext run)
Complete the next step.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStatusMessages
public FlatRegionVisitor(FlatRegion flatRegion, FlatRegionFunction function)
flatRegion
- a flat regionfunction
- a function to apply to columnspublic int getAffected()
public Operation resume(RunContext run) throws WorldEditException
Operation
resume
in interface Operation
run
- describes information about the current runWorldEditException
- an errorpublic void cancel()
Operation
Operation.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.public java.lang.Iterable<com.sk89q.worldedit.util.formatting.text.Component> getStatusMessages()
Operation
getStatusMessages
in interface Operation