public class ExtentBufferedCompositePattern extends AbstractExtentPattern
ExtentBuffer
to avoid changing blocks in an underlying extent (e.g. the world).Constructor and Description |
---|
ExtentBufferedCompositePattern(Extent extent,
Pattern... patterns)
Construct a new instance of this pattern.
|
Modifier and Type | Method and Description |
---|---|
BaseBlock |
applyBlock(BlockVector3 position)
Return a
BaseBlock for the given position. |
getExtent
public ExtentBufferedCompositePattern(Extent extent, Pattern... patterns)
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.
extent
- the extent to buffer changes topatterns
- the patterns to apply, in orderpublic BaseBlock applyBlock(BlockVector3 position)
Pattern
BaseBlock
for the given position.position
- the position