Class LineParagraph

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

public class LineParagraph extends Object implements Paragraph
A paragraph that contains a single line.
Since:
2.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    LineParagraph(net.kyori.adventure.text.Component line)
    Constructs a new line paragraph with the given line.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.kyori.adventure.text.Component
    Returns the line of the paragraph.
    List<net.kyori.adventure.text.Component>
    Returns a list representing the lines of the paragraph.
    setLine(net.kyori.adventure.text.Component line)
    Sets the line of the paragraph.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LineParagraph

      public LineParagraph(net.kyori.adventure.text.Component line)
      Constructs a new line paragraph with the given line.
      Parameters:
      line - the line of the paragraph
      Since:
      2.0.0
  • Method Details

    • getLine

      public net.kyori.adventure.text.Component getLine()
      Returns the line of the paragraph.
      Returns:
      the line of the paragraph
      Since:
      2.0.0
    • setLine

      public LineParagraph setLine(net.kyori.adventure.text.Component line)
      Sets the line of the paragraph.
      Parameters:
      line - the line of the paragraph
      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