Class BlockPattern
java.lang.Object
com.sk89q.worldedit.function.pattern.AbstractPattern
com.sk89q.worldedit.function.pattern.BlockPattern
Deprecated.
all BlockStateHolders can be used directly as a pattern
A pattern that returns the same
BaseBlock
each time.-
Constructor Summary
ConstructorDescriptionBlockPattern
(BlockStateHolder<?> block) Deprecated.Create a new pattern with the given block. -
Method Summary
Modifier and TypeMethodDescriptionapplyBlock
(BlockVector3 position) Deprecated.Return aBaseBlock
for the given position.getBlock()
Deprecated.Get the block.void
setBlock
(BlockStateHolder<?> block) Deprecated.Set the block that is returned.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
appliesChunk, appliesLayer, applyChunk, finishChunk, join
-
Constructor Details
-
BlockPattern
Deprecated.Create a new pattern with the given block.- Parameters:
block
- the block
-
-
Method Details
-
getBlock
Deprecated.Get the block.- Returns:
- the block that is always returned
-
setBlock
Deprecated.Set the block that is returned.- Parameters:
block
- the block
-
applyBlock
Deprecated.Description copied from interface:Pattern
Return aBaseBlock
for the given position.- Parameters:
position
- the position- Returns:
- a block
-