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