Class BlockPosition.Builder

  • Enclosing class:
    BlockPosition

    public static class BlockPosition.Builder
    extends Object
    Used when creating BlockPosition instances.
    • Constructor Detail

      • Builder

        public Builder()
        Creates a new Builder with TOP alignment at the absolute position of 0.
    • Method Detail

      • position

        public BlockPosition.Builder position​(Position pos)
        Sets the vertical position of the block, 0 is the first row.
        Parameters:
        pos - the position where the block should be positioned
        Returns:
        returns this Builder
      • align

        public 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.
        Parameters:
        align - the alignment
        Returns:
        returns this Builder
      • build

        public BlockPosition build()
        Creates a new BlockPosition instance.
        Returns:
        returns a new BlockPosition instance