Class ExtentBufferedCompositePattern
java.lang.Object
com.sk89q.worldedit.function.pattern.AbstractPattern
com.sk89q.worldedit.function.pattern.AbstractExtentPattern
com.sk89q.worldedit.function.pattern.ExtentBufferedCompositePattern
- All Implemented Interfaces:
Filter
,ExtentPattern
,Pattern
A pattern that composes multiple patterns consecutively, ensuring that changes from one
pattern are realized by the subsequent one(s). For best results, use an
ExtentBuffer
to avoid changing blocks in an underlying extent (e.g. the world).-
Constructor Summary
ConstructorDescriptionExtentBufferedCompositePattern
(Extent extent, Pattern... patterns) Construct a new instance of this pattern. -
Method Summary
Modifier and TypeMethodDescriptionapplyBlock
(BlockVector3 position) Return aBaseBlock
for the given position.fork()
Fork this for use by another thread - Typically filters are simple and don't need to create another copy to be thread safe hereMethods inherited from class com.sk89q.worldedit.function.pattern.AbstractExtentPattern
getExtent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fastasyncworldedit.core.queue.Filter
applyChunk, finishChunk, join
Methods inherited from interface com.sk89q.worldedit.function.pattern.Pattern
apply, apply, applyBlock, size
-
Constructor Details
-
ExtentBufferedCompositePattern
Construct a new instance of this pattern.Note that all patterns passed which are ExtentPatterns should use the same extent as the one passed to this constructor, or block changes may not be realized by those patterns.
- Parameters:
extent
- the extent to buffer changes topatterns
- the patterns to apply, in order
-
-
Method Details
-
applyBlock
Description copied from interface:Pattern
Return aBaseBlock
for the given position.- Parameters:
position
- the position- Returns:
- a block
-
fork
Description copied from interface:Filter
Fork this for use by another thread - Typically filters are simple and don't need to create another copy to be thread safe here- Returns:
- this
-