Interface Pattern
- All Superinterfaces:
Filter
- All Known Subinterfaces:
BlockStateHolder<B>
,ExtentPattern
- All Known Implementing Classes:
AbstractExtentPattern
,AbstractExtentPattern
,AbstractPattern
,AngleColorPattern
,AnglePattern
,AverageColorPattern
,BaseBlock
,BiomeApplyingPattern
,BlanketBaseBlock
,BlockPattern
,BlockState
,BlockType
,BufferedPattern
,BufferedPattern2D
,ClipboardPattern
,DesaturatePattern
,ExistingPattern
,ExpressionPattern
,ExtentBufferedCompositePattern
,ForgetfulExtentBuffer
,FuzzyBlockState
,Linear2DBlockPattern
,Linear3DBlockPattern
,LinearBlockPattern
,MaskedPattern
,MobSpawnerBlock
,NoXPattern
,NoYPattern
,NoZPattern
,OffsetPattern
,RandomFullClipboardPattern
,RandomOffsetPattern
,RandomPattern
,RandomStatePattern
,RelativePattern
,RepeatingExtentPattern
,SaturatePattern
,ShadePattern
,SignBlock
,SkullBlock
,SolidRandomOffsetPattern
,StateApplyingPattern
,SurfaceRandomOffsetPattern
,TypeApplyingPattern
,TypeSwapPattern
,WaterloggedRemover
Returns a
BaseBlock
for a given position.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
apply
(Extent extent, BlockVector3 get, BlockVector3 set) default BaseBlock
apply
(BlockVector3 position) Deprecated.default void
applyBlock
(FilterBlock block) Make changes to the block here
- e.g., block.setId(...)
- Note: Performance is critical hereapplyBlock
(BlockVector3 position) Return aBaseBlock
for the given position.default Pattern
fork()
Fork this for use by another thread - Typically filters are simple and don't need to create another copy to be thread safe heredefault BlockVector3
size()
Get the likely maximum size of the volume this pattern will affectMethods inherited from interface com.fastasyncworldedit.core.queue.Filter
applyChunk, finishChunk, join
-
Method Details
-
apply
@Deprecated @NonAbstractForCompatibility(delegateName="applyBlock", delegateParams=BlockVector3.class) default BaseBlock apply(BlockVector3 position) Deprecated.Return aBaseBlock
for the given position.- Parameters:
position
- the position- Returns:
- a block
- See Also:
-
apply
- Throws:
WorldEditException
-
applyBlock
Description copied from interface:Filter
Make changes to the block here
- e.g., block.setId(...)
- Note: Performance is critical here- Specified by:
applyBlock
in interfaceFilter
-
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 -
applyBlock
Return aBaseBlock
for the given position.- Parameters:
position
- the position- Returns:
- a block
-
size
Get the likely maximum size of the volume this pattern will affect- Returns:
- Pattern size
- Since:
- 2.9.2
-
applyBlock(BlockVector3)