Class BlockPattern
java.lang.Object
com.sk89q.worldedit.function.pattern.AbstractPattern
com.sk89q.worldedit.function.pattern.BlockPattern
- All Implemented Interfaces:
Pattern
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.
-
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
-