public class BlockPattern extends AbstractPattern
BaseBlock
each time.Constructor and Description |
---|
BlockPattern(BlockStateHolder block)
Create a new pattern with the given block.
|
Modifier and Type | Method and Description |
---|---|
BlockStateHolder |
apply(Vector position)
Return a
BlockStateHolder for the given position. |
BlockStateHolder |
getBlock()
Get the block.
|
void |
setBlock(BlockStateHolder block)
Set the block that is returned.
|
public BlockPattern(BlockStateHolder block)
block
- the blockpublic BlockStateHolder getBlock()
public void setBlock(BlockStateHolder block)
block
- the blockpublic BlockStateHolder apply(Vector position)
Pattern
BlockStateHolder
for the given position.position
- the position