public interface Operation
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
warnedDeprecatedClasses
This is an internal field, and should not be touched.
|
Modifier and Type | Method and Description |
---|---|
default void |
addStatusMessages(java.util.List<java.lang.String> messages)
Deprecated.
Will be removed in WorldEdit 8.0 - use the Component variant
|
void |
cancel()
Abort the current task.
|
default 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.
|
static final java.util.Set<java.lang.String> warnedDeprecatedClasses
Operation resume(RunContext run) throws WorldEditException
run
- describes information about the current runWorldEditException
- an errorvoid cancel()
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.@Deprecated default void addStatusMessages(java.util.List<java.lang.String> messages)
messages
- The list to add messages todefault java.lang.Iterable<com.sk89q.worldedit.util.formatting.text.Component> getStatusMessages()