Class BlankParagraph

java.lang.Object
io.github.somesourcecode.someguiapi.scene.lore.BlankParagraph
All Implemented Interfaces:
Paragraph

public class BlankParagraph extends Object implements Paragraph
A paragraph that contains just blank lines.
Since:
2.0.0, 2.0.0
  • Constructor Details

    • BlankParagraph

      public BlankParagraph()
      Constructs a new blank paragraph with a single blank line.
      Since:
      2.0.0
    • BlankParagraph

      public BlankParagraph(int space)
      Constructs a new blank paragraph with the given amount of blank lines.
      Parameters:
      space - the amount of blank lines
      Since:
      2.0.0
  • Method Details

    • getSpace

      public int getSpace()
      Returns the amount of blank lines.
      Returns:
      the amount of blank lines
      Since:
      2.0.0
    • setSpace

      public BlankParagraph setSpace(int space)
      Sets the amount of blank lines.
      Parameters:
      space - the amount of blank lines
      Returns:
      the paragraph for method chaining
      Since:
      2.0.0
    • getLines

      public List<net.kyori.adventure.text.Component> getLines()
      Description copied from interface: Paragraph
      Returns a list representing the lines of the paragraph.
      Specified by:
      getLines in interface Paragraph
      Returns:
      the lines of the paragraph