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,LegacyBaseBlockWrapper,Linear2DBlockPattern,Linear3DBlockPattern,LinearBlockPattern,MaskedPattern,MobSpawnerBlock,NoXPattern,NoYPattern,NoZPattern,OffsetPattern,PlacementStateProcessor,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 booleanapply(Extent extent, BlockVector3 get, BlockVector3 set) default BaseBlockapply(BlockVector3 position) Deprecated.default voidapplyBlock(FilterBlock block) Make changes to the block here
- e.g., block.setId(...)
- Note: Performance is critical hereapplyBlock(BlockVector3 position) Return aBaseBlockfor the given position.default Patternfork()Fork this for use by another thread - Typically filters are simple and don't need to create another copy to be thread safe heredefault BlockVector3size()Get the likely maximum size of the volume this pattern will affectMethods inherited from interface com.fastasyncworldedit.core.queue.Filter
applyChunk, finish, finishChunk, join
-
Method Details
-
apply
@Deprecated @NonAbstractForCompatibility(delegateName="applyBlock", delegateParams=BlockVector3.class) default BaseBlock apply(BlockVector3 position) Deprecated.Return aBaseBlockfor the given position.- Parameters:
position- the position- Returns:
- a block
- See Also:
-
apply
- Throws:
WorldEditException
-
applyBlock
Description copied from interface:FilterMake changes to the block here
- e.g., block.setId(...)
- Note: Performance is critical here- Specified by:
applyBlockin interfaceFilter
-
fork
Description copied from interface:FilterFork 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 aBaseBlockfor 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)