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:
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.Methods inherited from class com.sk89q.worldedit.function.pattern.AbstractExtentPattern
getExtent
-
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