public static class BlockPosition.Builder extends Object
Constructor and Description |
---|
Builder()
Creates a new Builder with TOP alignment at the absolute position of 0.
|
Modifier and Type | Method and Description |
---|---|
BlockPosition.Builder |
align(BlockPosition.VerticalAlignment align)
Sets the vertical alignment of the block, that is to say the row within the block that will be at the specified position.
|
BlockPosition |
build()
Creates a new BlockPosition instance
|
BlockPosition.Builder |
position(Position pos)
Sets the vertical position of the block, 0 is the first row.
|
public Builder()
public BlockPosition.Builder position(Position pos)
pos
- the position where the block should be positionedpublic BlockPosition.Builder align(BlockPosition.VerticalAlignment align)
align
- the alignmentpublic BlockPosition build()